/* ==========================================================================
   FRANTIC LABS - GAME SUB-SITE STYLESHEET
   Dedicated sub-portal styling for individual Frantic games
   ========================================================================== */

.game-subsite-wrap {
  padding-bottom: 90px;
}

/* Sub-site Header & Breadcrumbs */
.game-subnav-bar {
  background: rgba(12, 9, 24, 0.95);
  border-bottom: 1px solid var(--border-neon);
  backdrop-filter: blur(20px);
  position: sticky;
  top: var(--header-height);
  z-index: 90;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
}

.game-subnav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.game-subnav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-back-hub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: #8c8aa5;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.btn-back-hub:hover {
  color: #fff;
  border-color: var(--neon-cyan);
  background: rgba(0, 242, 254, 0.1);
  transform: translateX(-3px);
}

.game-subnav-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-subnav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.subnav-tab-btn {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a09eb5;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.subnav-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.subnav-tab-btn.active {
  color: #040814;
  background: var(--active-theme, var(--neon-cyan));
  border-color: var(--active-theme, var(--neon-cyan));
  box-shadow: 0 0 15px var(--active-glow, rgba(0, 242, 254, 0.5));
}

/* Game Subsite Hero */
.game-hero-banner {
  padding: 50px 0;
  position: relative;
  background: radial-gradient(circle at 70% 30%, var(--active-glow-soft, rgba(0, 242, 254, 0.15)) 0%, transparent 60%);
}

.game-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.game-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.game-hero-title {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 16px;
  color: #fff;
}

.game-hero-tagline {
  font-size: 1.25rem;
  color: var(--active-theme, var(--neon-cyan));
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 24px;
}

.game-hero-desc {
  font-size: 1.05rem;
  color: #cbc8df;
  margin-bottom: 32px;
  line-height: 1.7;
}

.game-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.lottie-store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 82px;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease, filter 0.2s ease;
  text-decoration: none;
}

.lottie-store-btn.ios {
  width: 192px;
}

.lottie-store-btn.android {
  width: 212px;
}

.lottie-store-btn:not(.coming-soon):hover {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 0 14px var(--active-glow, rgba(0, 242, 254, 0.45)));
}

.lottie-store-btn.coming-soon {
  cursor: default;
  opacity: 0.78;
}

.lottie-store-canvas {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.game-hero-video-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}

.btn-youtube-video {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 192px;
  height: 66px;
  padding: 0 22px 0 14px;
  background: #050508;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-youtube-video:not(.coming-soon):hover {
  transform: translateY(-2px);
  border-color: #ff004c;
  box-shadow: 0 0 22px rgba(255, 0, 76, 0.45), inset 0 0 12px rgba(255, 0, 76, 0.15);
}

.btn-youtube-video:not(.coming-soon):hover .yt-icon-circle {
  background: rgba(255, 0, 76, 0.22);
  box-shadow: 0 0 16px rgba(255, 0, 76, 0.55);
}

.btn-youtube-video.coming-soon {
  cursor: default;
  opacity: 0.65;
}

.yt-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 0, 76, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.yt-icon-circle svg {
  width: 24px;
  height: 24px;
  display: block;
}

.yt-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.yt-btn-sub {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d6d4e5;
}

.yt-btn-title {
  font-family: var(--font-mono, var(--font-display));
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff1744;
  text-shadow: 0 0 10px rgba(255, 23, 68, 0.35);
  margin-top: 2px;
}

.game-hero-visual {
  position: relative;
}

.game-hero-visual img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 2px solid var(--active-theme, var(--neon-cyan));
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 30px var(--active-glow, rgba(0, 242, 254, 0.3));
}

/* ==========================================================================
   GAME SUB-SITE TAB PANELS
   ========================================================================== */
.game-tab-panel {
  display: none;
  animation: fadeInTab 0.35s ease forwards;
}

.game-tab-panel.active {
  display: block;
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Turnless Twist Highlight */
.turnless-twist-card {
  background: linear-gradient(135deg, rgba(255, 0, 127, 0.12), rgba(121, 40, 202, 0.12));
  border: 1px solid var(--border-pink);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 40px;
  position: relative;
  box-shadow: 0 0 25px rgba(255, 0, 127, 0.15);
}

.turnless-twist-card h3 {
  font-size: 1.3rem;
  color: var(--neon-pink);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.turnless-twist-card p {
  font-size: 1.05rem;
  color: #e5e3f4;
  line-height: 1.7;
}

/* Modes Grid */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition-fast);
}

.mode-card:hover {
  border-color: var(--active-theme, var(--neon-cyan));
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.mode-card h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 8px;
}

.mode-card p {
  font-size: 0.9rem;
  color: #a5a3bc;
}

/* Features Checklist */
.game-features-wrap {
  margin-top: 48px;
  background: rgba(18, 14, 36, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 36px;
}

.features-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.feature-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-check-icon {
  color: var(--neon-green);
  font-size: 1.1rem;
  margin-top: 2px;
}

/* ==========================================================================
   GALLERY TAB
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

.gallery-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-item:hover {
  transform: translateY(-6px);
  border-color: var(--active-theme, var(--neon-cyan));
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7), 0 0 20px var(--active-glow, rgba(0, 242, 254, 0.3));
}

.gallery-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.gallery-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-thumb-wrap img {
  transform: scale(1.05);
}

.gallery-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 8, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.gallery-item:hover .gallery-hover-overlay {
  opacity: 1;
}

.gallery-zoom-badge {
  background: var(--active-theme, var(--neon-cyan));
  color: #040814;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.gallery-caption-box {
  padding: 20px;
}

.gallery-caption-box h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 6px;
}

.gallery-caption-box p {
  font-size: 0.85rem;
  color: #9c99b2;
}

/* ==========================================================================
   FAQ TAB (ACCORDION)
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.active {
  border-color: var(--active-theme, var(--neon-cyan));
  box-shadow: 0 0 15px var(--active-glow-soft, rgba(0, 242, 254, 0.2));
}

.faq-question {
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

.faq-question .faq-icon {
  font-size: 1.3rem;
  color: var(--active-theme, var(--neon-cyan));
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-question .faq-icon {
  transform: rotate(45deg);
  color: var(--neon-pink);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 28px;
  color: #b5b3c7;
  font-size: 0.98rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}

/* Sub-site Responsive */
@media (max-width: 992px) {
  .game-hero-grid {
    grid-template-columns: 1fr;
  }
  .features-check-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .game-subnav-container {
    flex-direction: column;
    height: auto;
    padding: 12px 0;
    gap: 12px;
  }
  .game-subnav-tabs {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    justify-content: flex-start;
  }
  .subnav-tab-btn {
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
