/* ============================================
   EchoForge Studios — Shared Page Styles
   Used by: press, game pages, blog, legal pages
   ============================================ */

/* --- Page Nav --- */
.page-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 13, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
}

.page-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-nav-brand {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
}

.page-nav-brand:hover {
  color: var(--gold-light);
}

.page-nav-links {
  display: flex;
  gap: 24px;
}

.page-nav-links a {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.page-nav-links a:hover,
.page-nav-links a.active {
  color: var(--white);
}

/* --- Mobile Nav Toggle --- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 28px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--muted);
  border-radius: 1px;
  transition: all 0.2s ease;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); background: var(--white); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); background: var(--white); }

/* --- Page Content --- */
.page-content {
  padding: 120px 0 80px;
}

.page-title {
  font-size: clamp(28px, 3vw, 40px);
  color: var(--white);
  margin-bottom: 12px;
}

.page-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 600px;
}

/* --- Game Hero --- */
.game-hero {
  padding: 140px 0 60px;
  text-align: center;
}

.game-hero-logo {
  max-width: 400px;
  width: 100%;
  height: auto;
  margin-bottom: 16px;
}

.game-hero-tagline {
  font-family: 'Cinzel', serif;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 16px;
}

.game-hero-meta {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.game-hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Game About --- */
.game-about {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
}

.game-about p + p {
  margin-top: 16px;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: linear-gradient(135deg, var(--surface), rgba(36, 42, 58, 0.6));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.feature-card h3 {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* --- Changelog --- */
.changelog {
  max-width: 720px;
  margin: 0 auto;
}

.changelog-entry {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.changelog-entry:last-child {
  border-bottom: none;
}

.changelog-date {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  padding-top: 2px;
}

.changelog-content h3 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 10px;
}

.changelog-content ul {
  margin: 0;
  padding-left: 20px;
}

.changelog-content li {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 4px;
}

/* --- FAQ --- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
}

/* --- Press Kit --- */
.press-section {
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.press-section:last-child {
  border-bottom: none;
}

.press-section h2 {
  font-size: clamp(20px, 2vw, 26px);
  color: var(--white);
  margin-bottom: 20px;
}

.press-section h3 {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 4px;
}

.press-section p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.75;
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.press-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.press-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.press-value {
  font-size: 0.95rem;
  color: var(--text);
}

.press-description {
  margin-top: 20px;
}

.press-founder {
  max-width: 640px;
}

.press-founder-role {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.press-logos {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.press-logo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.press-logo-preview {
  background: var(--bg-deep);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 16px;
}

.press-logo-preview img {
  max-width: 200px;
  height: auto;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
  min-height: 36px;
}

.press-game-header {
  margin-bottom: 20px;
}

.press-game-logo {
  max-width: 320px;
  height: auto;
  border-radius: var(--radius-sm);
}

.press-features {
  margin: 12px 0 0 24px;
}

.press-features li {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 4px;
}

/* --- Blog Filters --- */
.blog-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.blog-filter {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: 0.01em;
}

.blog-filter:hover {
  border-color: rgba(59, 168, 255, 0.3);
  background: rgba(59, 168, 255, 0.06);
  color: var(--white);
}

.blog-filter.active {
  background: rgba(212, 160, 74, 0.1);
  border-color: rgba(212, 160, 74, 0.4);
  color: var(--gold);
  font-weight: 600;
}

/* --- Blog List --- */
.blog-list {
  display: grid;
  gap: 20px;
}

.blog-card {
  display: block;
  background: linear-gradient(135deg, var(--surface), rgba(36, 42, 58, 0.6));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-card:hover {
  border-color: rgba(59, 168, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.blog-date {
  font-size: 0.8rem;
  color: var(--muted);
}

.blog-card h2 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 8px;
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.blog-read-more {
  font-size: 0.85rem;
  color: var(--blue);
  font-weight: 500;
}

.blog-card:hover .blog-read-more {
  color: var(--blue-soft);
}

/* --- Blog Post --- */
.blog-post {
  max-width: 720px;
}

.blog-back {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 24px;
  text-decoration: none;
}

.blog-back:hover {
  color: var(--blue);
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.blog-post-title {
  font-size: clamp(24px, 3vw, 36px);
  color: var(--white);
  margin-bottom: 32px;
}

.blog-post h2 {
  font-size: 1.2rem;
  color: var(--gold);
  margin: 32px 0 12px;
}

.blog-post p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 16px;
}

.blog-post ul {
  margin: 0 0 16px 24px;
}

.blog-post li {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 6px;
}

.blog-post a {
  color: var(--blue);
}

.blog-post a:hover {
  color: var(--blue-soft);
}

/* --- Subscribed Page --- */
.subscribed-hero {
  text-align: center;
  margin-bottom: 48px;
}

.subscribed-hero .page-title,
.subscribed-hero .page-subtitle {
  text-align: center;
}

.subscribed-hero .page-subtitle {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.subscribed-check {
  font-size: 0.95rem;
  color: var(--gold);
  margin-top: 8px;
}

.subscribed-section {
  margin-bottom: 48px;
}

.subscribed-heading {
  font-family: 'Cinzel', serif;
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--white);
  margin-bottom: 24px;
  text-align: center;
}

.subscribed-games {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.subscribed-game-card {
  background: linear-gradient(160deg, rgba(36, 42, 58, 0.9), rgba(26, 31, 46, 0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.subscribed-game-logo {
  width: 120px;
  height: auto;
  margin-bottom: 16px;
}

.subscribed-game-card h3 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 10px;
}

.subscribed-game-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.subscribed-game-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 18px;
}

.subscribed-game-links {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.subscribed-posts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subscribed-post {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.subscribed-post:hover {
  border-color: rgba(59, 168, 255, 0.25);
}

.subscribed-post strong {
  color: var(--white);
  font-size: 0.95rem;
  flex: 1;
}

.subscribed-post-date {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.subscribed-back {
  text-align: center;
  margin: 32px 0 16px;
}

.subscribed-back a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.subscribed-back a:hover {
  color: var(--blue);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .changelog-entry {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .press-grid {
    grid-template-columns: 1fr;
  }

  .subscribed-games {
    grid-template-columns: 1fr;
  }

  .subscribed-post {
    flex-wrap: wrap;
  }

  .subscribed-post-date {
    width: 100%;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .page-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(13, 13, 20, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 16px;
    gap: 0;
  }

  .page-nav-links.open {
    display: flex;
  }

  .page-nav-links a {
    font-size: 0.9rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .page-nav-links a:last-child {
    border-bottom: none;
  }

  .game-hero-logo {
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .game-hero-cta {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .game-hero-cta .btn {
    width: 100%;
  }
}
