/* ----- Homepage-specific styles for PLWOWGame ----- */

.hero-section {
  background: linear-gradient(90deg, rgba(28,24,15,0.88) 70%, rgba(204,160,26,0.13) 100%), url('../images/fantasy-landscape-castle-scenery-dreamlike-realms-9124.webp') center/cover no-repeat;
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
  text-align: center;
  min-height: 320px;
  box-shadow: 0 6px 24px 0 rgba(0,0,0,0.28);
}
.hero-title {
  font-size: var(--font-size-2xl);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  margin-top: var(--space-4);
  text-shadow: 0 2px 16px #000;
}
.hero-description {
  font-size: var(--font-size-lg);
  color: var(--gray-100);
  max-width: 54ch;
  margin: 0 auto;
  text-shadow: 0 1px 6px #0a0a0e;
}

/* Overview Cards */
.overview-section {
  margin-bottom: var(--space-12);
}
.overview-grid {
  gap: var(--space-8);
}
.overview-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-left: 4px solid var(--color-primary);
  background: linear-gradient(85deg, rgba(34, 37, 51, 0.95) 60%, rgba(204,160,26,0.15) 100%);
  position: relative;
  overflow: hidden;
}
.overview-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
}
.overview-card > * {
  position: relative;
  z-index: 1;
}
.overview-card:nth-child(1)::before {
  background-image: url('../images/fantasy-castle-floating-islands-sunset-landscape-9256.webp');
}
.overview-card:nth-child(2)::before {
  background-image: url('../images/fantasy-landscape-floating-cities-sunset-scenery-3559.webp');
}
.overview-card:nth-child(3)::before {
  background-image: url('../images/fantasy-castle-landscape-with-galaxies-and-waterfalls-6350.webp');
}
.overview-card:nth-child(4)::before {
  background-image: url('../images/fantastical-floating-cities-epic-landscape-art-8337.webp');
}
.overview-card h2 {
  font-size: var(--font-size-lg);
  color: var(--color-primary);
}

/* Features grid */
.features-section {
  margin-bottom: var(--space-16);
}
.features-grid {
  gap: var(--space-8);
  min-height: 150px;
}
.feature-tile {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  min-height: 160px;
}
.feature-tile h3 {
  margin-top: 0;
  font-size: var(--font-size-base);
  color: var(--color-primary);
}
.feature-tile p {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--gray-100);
}

/* Highlighted Resource Section */
.highlight-section {
  margin-bottom: var(--space-12);
  text-align: center;
}
.highlight-section .section-title {
  margin-bottom: var(--space-6);
  font-size: var(--font-size-xl);
  color: var(--color-primary);
}
.highlight-list {
  justify-content: center;
  gap: var(--space-8);
}
.highlight-list li {
  background: var(--gray-700);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-size: var(--font-size-base);
  font-weight: 500;
}
.highlight-list li a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}
.highlight-list li a:hover,
.highlight-list li a:focus-visible {
  text-decoration: underline;
  color: var(--color-primary-dark);
}

/* Header navigation */
.site-header {
  background: var(--color-surface);
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--gray-700);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.logo {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-xl);
  letter-spacing: 2px;
  color: var(--color-primary);
  font-weight: 700;
  text-shadow: 0 1px 10px #31220280;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.primary-nav li a {
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.primary-nav li a:hover,
.primary-nav li a:focus-visible {
  background: var(--color-primary-dark);
  color: #fffdd4;
  outline: none;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: var(--space-2);
  z-index: 1200;
}
.mobile-menu-toggle .bar {
  width: 24px;
  height: 3px;
  background: var(--color-primary);
  margin: 3px 0;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Footer styles */
.site-footer {
  background: var(--color-surface);
  color: var(--gray-300);
  padding-top: var(--space-8);
  padding-bottom: calc(var(--space-8) + 90px);
  border-top: 1px solid var(--gray-700);
  font-size: var(--font-size-sm);
}
.footer-main, .footer-legal {
  width: 100%;
}
.footer-main {
  margin-bottom: var(--space-4);
}
.footer-brand {
  font-family: var(--font-family-heading);
  color: var(--color-primary);
  font-size: var(--font-size-xl);
  font-weight: 700;
}
.footer-links li a {
  color: var(--color-text);
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}
.footer-links li a:hover, .footer-links li a:focus-visible {
  background: var(--color-primary);
  color: #18160e;
}
.legal-links li a {
  color: var(--gray-300);
  font-size: var(--font-size-xs);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.legal-links li a:hover, .legal-links li a:focus-visible {
  background: var(--color-primary);
  color: #18160e;
}
.copyright {
  color: var(--gray-400);
  font-size: var(--font-size-xs);
}

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: rgba(34,37,51,0.99);
  color: var(--gray-100);
  box-shadow: 0 -2px 20px #0008;
  z-index: 4001;
  padding: var(--space-4) var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--font-size-base);
  transition: transform .3s cubic-bezier(0.4,0,0.2,1), opacity .3s cubic-bezier(0.4,0,0.2,1);
}
.cookie-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.cookie-buttons {
  display: flex;
  gap: var(--space-3);
}
#cookie-reject.button.secondary {
  background: var(--gray-700);
  color: var(--gray-100);
}
#cookie-reject.button.secondary:hover, #cookie-reject.button.secondary:focus-visible {
  background: var(--color-danger);
  color: #fff;
  outline: 2px solid var(--color-danger);
}

/* Responsive adjustments */
@media (max-width: 1100px) {
  .primary-nav {
    display: none !important;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-surface);
    box-shadow: var(--shadow-lg);
    padding: var(--space-8) 0 var(--space-4) 0;
    z-index: 1100;
    gap: var(--space-4);
  }
  .primary-nav.active {
    display: flex !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 900px) {
  .grid-cols-2, .features-grid, .overview-grid {
    grid-template-columns: 1fr !important;
  }
  .highlight-list.flex-row {
    flex-direction: column !important;
    gap: var(--space-4) !important;
    align-items: center;
  }
  .overview-section {
    margin-bottom: var(--space-8);
  }
  .features-section {
    margin-bottom: var(--space-12);
  }
  .features-grid .feature-tile {
    min-height: 120px;
  }
  .footer-main, .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}
@media (max-width: 600px) {
  .site-header, .site-footer {
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }
  .primary-nav {
    display: none !important;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-surface);
    box-shadow: var(--shadow-lg);
    padding: var(--space-8) 0 var(--space-4) 0;
    z-index: 1100;
    gap: var(--space-4);
  }
  .primary-nav.active {
    display: flex !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
  .hero-section {
    min-height: 180px;
    padding: var(--space-3) var(--space-2);
  }
}
