/* ============================================================
   featured.css — Featured plugin showcase carousel
   ============================================================ */

/* ── Section wrapper ── */
.featured-section {
  position: relative;
  padding: var(--space-7) 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.featured-section-hd {
  padding: 0 var(--space-6);
  margin-bottom: var(--space-5);
}

/* ── Carousel outer ── */
.fc-carousel-wrap {
  position: relative;
}

.fc-carousel {
  overflow: hidden;
  padding: var(--space-3) 0 var(--space-5);
  /* Show 2.5 cards: each card is ~42vw, gap 20px */
  cursor: grab;
}
.fc-carousel:active { cursor: grabbing; }

.fc-track {
  display: flex;
  gap: 20px;
  padding: 0 var(--space-6);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  user-select: none;
}

/* ── Individual card ── */
.fc-card {
  flex-shrink: 0;
  width: calc((100vw - (var(--space-6) * 2) - 40px) / 2.5);
  min-width: 560px;
  max-width: 700px;
  height: 340px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-mid);
  position: relative;
  overflow: visible; /* allow image expand to float above */
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.fc-card:hover {
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

/* Background gradient */
.fc-card-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--fc-grad);
  opacity: 0.55;
  z-index: 0;
  overflow: hidden;
}
.fc-card-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    rgba(5,7,10,0.92) 0%,
    rgba(5,7,10,0.75) 45%,
    rgba(5,7,10,0.45) 100%
  );
  z-index: 1;
}

/* Rank badge */
.fc-rank {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 10;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--fc-accent, var(--accent));
  background: rgba(5,7,10,0.7);
  border: 1px solid var(--fc-accent, var(--accent));
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  letter-spacing: 1.5px;
  opacity: 0.8;
}

/* Inner layout */
.fc-card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: inherit;
  overflow: hidden; /* clip bg, not images */
}

/* ── Left info panel ── */
.fc-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  justify-content: center;
}

.fc-meta-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.fc-game-badge {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 2px;
  color: var(--fc-accent, var(--accent));
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--fc-accent, var(--accent));
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  opacity: 0.9;
}
.fc-cat-badge {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  text-transform: uppercase;
}
.fc-ver {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.fc-name {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-pri);
  line-height: 1.05;
  text-shadow: 0 2px 16px rgba(0,0,0,0.8);
}

.fc-desc {
  font-size: 0.8rem;
  color: var(--text-sec);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.fc-tag {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

/* Stats row */
.fc-stats {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-1);
}
.fc-stat {
  display: flex;
  align-items: center;
  gap: 5px;
}
.fc-stat-icon {
  font-size: 0.7rem;
  opacity: 0.6;
}
.fc-stat-val {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-pri);
}
.fc-stat-label {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  color: var(--text-dim);
  letter-spacing: 1.5px;
}

/* Actions */
.fc-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.fc-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--fc-accent, var(--accent));
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--fc-accent, var(--accent));
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.fc-btn-primary:hover {
  background: rgba(0,0,0,0.75);
  box-shadow: 0 0 18px rgba(0,0,0,0.5);
  color: #fff;
  border-color: #fff;
  text-shadow: none;
}

.fc-price {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.fc-price.free { color: var(--accent); text-shadow: 0 0 10px var(--accent-dim); }
.fc-price.paid { color: var(--amber); text-shadow: 0 0 10px var(--amber-dim); }

/* ── Right image panel ── */
.fc-images {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  overflow: visible; /* let expanded images float out */
  position: relative;
}

/* ── Image strip ── */
.fc-img-strip {
  width: 100%;
  position: relative;
  overflow: visible;
}

.fc-img-track {
  display: flex;
  gap: 6px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* Each item: 1/5.5 of container width */
.fc-img-item {
  flex-shrink: 0;
  width: calc(100% / 5.5);
  aspect-ratio: 16/10;
  border-radius: var(--radius-sm);
  overflow: visible;
  position: relative;
  cursor: pointer;
  z-index: 2;
  transition: z-index 0s;
}

.fc-img-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: block;
  transform-origin: center center;
  transform: scale(1);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s ease,
              border-color 0.25s ease;
  will-change: transform;
}

/* Hover expand — grows from centre, floats above everything */
.fc-img-item--expanded {
  z-index: 100;
}
.fc-img-item--expanded .fc-img-thumb {
  transform: scale(3.5);
  border-color: var(--border-hi);
  box-shadow: 0 8px 40px rgba(0,0,0,0.9), 0 0 0 1px var(--border-mid);
}

.fc-img-caption {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) scale(1);
  background: rgba(5,7,10,0.95);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-sec);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 101;
}
.fc-img-item--expanded .fc-img-caption {
  opacity: 1;
}

/* Image nav buttons */
.fc-img-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.fc-img-prev, .fc-img-next {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-sec);
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  padding: 0;
  line-height: 1;
}
.fc-img-prev:hover, .fc-img-next:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--border-mid);
}
.fc-img-counter {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

/* ── Placeholder (no images) ── */
.fc-img-strip--empty {
  height: 100%;
}
.fc-img-placeholder {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid var(--border);
  opacity: 0.7;
}
.fc-img-placeholder-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  padding: 0 var(--space-2);
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.fc-img-placeholder-sub {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 3px;
}

/* ── Edge bleed overlays ── */
.fc-edge {
  position: absolute;
  top: 0; bottom: 0;
  width: 180px;
  pointer-events: none;
  z-index: 10;
}
.fc-edge--left {
  left: 0;
  background: linear-gradient(to right, var(--bg) 0%, rgba(5,7,10,0.7) 55%, transparent 100%);
}
.fc-edge--right {
  right: 0;
  background: linear-gradient(to left, var(--bg) 0%, rgba(5,7,10,0.7) 55%, transparent 100%);
}

/* ── Nav arrows ── */
.fc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(8,11,16,0.85);
  border: 1px solid var(--border-mid);
  color: var(--text-sec);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease,
              color 0.18s ease, box-shadow 0.18s ease;
  backdrop-filter: blur(8px);
}
.fc-nav:hover {
  background: rgba(8,11,16,0.95);
  border-color: var(--accent-dim);
  color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}
.fc-nav:disabled {
  opacity: 0.25;
  pointer-events: none;
}
.fc-nav--prev { left: var(--space-3); }
.fc-nav--next { right: var(--space-3); }

/* ── Dot indicators ── */
.fc-dots {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 20;
}
.fc-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  padding: 0;
}
.fc-dot.is-active {
  background: var(--accent);
  transform: scale(1.3);
  box-shadow: 0 0 6px var(--accent-dim);
}

/* ── Empty state ── */
.fc-empty {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 2px;
  padding: var(--space-7) var(--space-6);
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .fc-card {
    min-width: 320px;
    height: auto;
    min-height: 280px;
  }
  .fc-card-inner { flex-direction: column; }
  .fc-images { width: 100%; }
  .fc-img-placeholder { height: 100px; }
  .fc-edge { width: 80px; }
}