/* =================================================================
   HOME PAGE – AGE OF EMPIRES IV REVIEW PORTAL
   Cinematic | Imperial | Regal | Tactical | Grid-based | Responsive
================================================================= */

/* HERO PARALLAX
-------------------------------------------------- */
.hero-parallax {
  position: relative;
  height: 56.25vw;
  max-height: 800px;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-primary);
  text-align: center;
}
.hero-layer {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-gradient {
  background: linear-gradient(135deg, rgba(139, 26, 26, 0.6) 0%, rgba(212, 175, 55, 0.4) 100%);
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: var(--space-8) var(--space-4);
}
.hero-title {
  font-size: var(--font-size-6xl);
  letter-spacing: 0.08em;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.9);
}
.hero-subtitle {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-6);
  color: var(--color-gold-light);
}
@media (max-width: 768px) {
  .hero-parallax {
    height: 100vh;
    max-height: none;
  }
  .hero-title {
    font-size: var(--font-size-4xl);
  }
  .hero-subtitle {
    font-size: var(--font-size-lg);
  }
}

/* VALUE CARDS FLIP
-------------------------------------------------- */
.value-card {
  position: relative;
  height: 280px;
  transform-style: preserve-3d;
  transition: transform var(--transition-slow);
  cursor: pointer;
}
.value-card:hover {
  transform: rotateY(180deg);
}
.value-front,
.value-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: var(--border-width-thick) solid;
}
.value-front {
  background: var(--color-bg-secondary);
  border-color: var(--color-crimson);
  color: var(--color-gold);
}
.value-back {
  background: var(--color-bg-tertiary);
  border-color: var(--color-gold);
  transform: rotateY(180deg);
}
.value-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.crown  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23d4af37' viewBox='0 0 24 24'%3E%3Cpath d='M5 16L3 5l5.5 5L12 4l3.5 6L21 5l-2 11H5zm14 2H5v2h14v-2z'/%3E%3C/svg%3E"); }
.scroll { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23d4af37' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h12v2H6zm0 4h12v2H6zm0 4h12v2H6zm14 4l-2 2-2-2-2 2-2-2-2 2-2-2-2 2-2-2v6h16v-6z'/%3E%3C/svg%3E"); }
.horn   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23d4af37' viewBox='0 0 24 24'%3E%3Cpath d='M2 3v18h4v-2H4V5h16v14h-2v2h4V3H2zm7 4h4v2H9V7zm0 4h4v2H9v-2zm0 4h4v2H9v-2z'/%3E%3C/svg%3E"); }

/* NAV DOCK
-------------------------------------------------- */
.nav-dock {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--color-bg-overlay);
  backdrop-filter: blur(8px);
  border-bottom: var(--border-width) solid var(--border-color);
}
.nav-dock .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}
.dock-list {
  display: flex;
  gap: var(--space-6);
}
.dock-link {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: var(--space-1);
  border-bottom: 3px solid transparent;
  transition: border-color var(--transition-fast);
}
.dock-link:hover,
.dock-link[aria-current="page"] {
  border-color: var(--color-gold);
}
.dock-search {
  background: transparent;
  border: none;
  color: var(--color-gold);
  padding: var(--space-2);
  border-radius: var(--radius-full);
  transition: background var(--transition-fast);
}
.dock-search:hover {
  background: rgba(212, 175, 55, 0.1);
}
@media (max-width: 768px) {
  .nav-dock {
    padding: var(--space-2) 0;
  }
  .nav-dock .container {
    flex-direction: column;
    height: auto;
    padding: var(--space-3) var(--space-4);
    gap: var(--space-3);
  }
  .dock-list {
    flex-direction: column;
    gap: var(--space-3);
    width: 100%;
    text-align: center;
  }
}

/* SPOTLIGHT CARD
-------------------------------------------------- */
.spotlight-card {
  display: flex;
  gap: var(--space-8);
  background: var(--color-bg-secondary);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
}
.spotlight-card img {
  border-radius: var(--radius-base);
  flex-shrink: 0;
}
.spotlight-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.spotlight-header {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.spotlight-title {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-4);
}
.spotlight-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-4);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}
@media (max-width: 768px) {
  .spotlight-card {
    flex-direction: column;
  }
  .spotlight-card img {
    width: 100%;
    height: auto;
  }
}

/* STATS STRIP
-------------------------------------------------- */
.stat-box {
  text-align: center;
  background: var(--color-bg-secondary);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform var(--transition-base);
}
.stat-box:hover {
  transform: translateY(-4px);
}
.stat-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-3);
  fill: var(--color-gold);
}
.stat-count {
  display: block;
  font-family: var(--font-primary);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-black);
  color: var(--color-gold);
  line-height: 1;
}
.stat-box p {
  margin-top: var(--space-2);
  color: var(--color-text-secondary);
}

/* CIV CAROUSEL
-------------------------------------------------- */
.civ-carousel {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.civ-list {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: var(--space-2) 0;
}
.civ-btn {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--color-bg-tertiary);
  border: var(--border-width) solid var(--color-stone);
  font-size: 2rem;
  line-height: 1;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.civ-btn[aria-selected="true"] {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold);
  transform: scale(1.1);
}
.civ-btn:not([aria-selected="true"]):hover {
  border-color: var(--color-gold-light);
  opacity: 1;
}
.civ-btn:not([aria-selected="true"]) {
  opacity: 0.4;
}
.carousel-arrow {
  background: none;
  border: none;
  color: var(--color-gold);
  font-size: 2rem;
  padding: var(--space-2);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: background var(--transition-fast);
}
.carousel-arrow:hover {
  background: rgba(212, 175, 55, 0.1);
}
@media (max-width: 768px) {
  .civ-carousel {
    gap: var(--space-2);
  }
  .civ-btn {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
  }
}

/* MASONRY TACTIC GRID
-------------------------------------------------- */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-6);
}
.tactic-card {
  background: var(--color-bg-secondary);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: all var(--transition-base);
}
.tactic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold);
}
.tactic-card h3 {
  font-size: var(--font-size-xl);
}
.tactic-card img {
  border-radius: var(--radius-base);
}
.tactic-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

/* NEWSLETTER SIEGE TOWER
-------------------------------------------------- */
.newsletter-card {
  width: 350px;
  max-width: 100%;
  background: linear-gradient(135deg, var(--color-bg-secondary), var(--color-bg-tertiary));
  border: var(--border-width-thick) solid var(--color-crimson);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-crimson);
}
.newsletter-card h3 {
  text-align: center;
  margin-bottom: var(--space-6);
}
.newsletter-card .form-input {
  margin-bottom: var(--space-4);
  border-color: var(--color-crimson-light);
}
.newsletter-card .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-4);
}
.newsletter-card small {
  display: block;
  text-align: center;
  margin-top: var(--space-4);
  color: var(--color-text-muted);
}
@media (max-width: 768px) {
  .newsletter-card {
    width: 100%;
  }
}

/* COMMUNITY PULSE BAR
-------------------------------------------------- */
.poll-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-bg-secondary);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.poll-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: var(--space-6) 0;
}
.poll-option {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-4);
  cursor: pointer;
}
.poll-option input {
  margin-right: var(--space-2);
}
.poll-option progress {
  width: 100%;
  height: 10px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: var(--radius-full);
  overflow: hidden;
}
.poll-option progress::-webkit-progress-bar {
  background: var(--color-bg-tertiary);
}
.poll-option progress::-webkit-progress-value {
  background: var(--color-gold);
}
.poll-total {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

/* CERTIFICATION BADGES
-------------------------------------------------- */
.certification-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
  border-radius: var(--radius-full);
  transition: background var(--transition-fast);
}
.certification-bar a:hover {
  background: rgba(212, 175, 55, 0.1);
}
.certification-bar svg {
  fill: var(--color-gold);
}
