/* Import Adventure-style fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  color: #8b4513;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.8rem;
  font-weight: 700;
}

h2 {
  font-size: 2.2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.8rem;
  font-weight: 500;
}

p {
  margin-bottom: 1rem;
  font-weight: 400;
  color: #34495e;
}

/* Container and Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

/* Header Styles - Horizontal Layout */
.site-header {
  background: linear-gradient(135deg, #8b4513 0%, #d2691e 100%);
  padding: 1rem 0;
  box-shadow: 0 2px 15px rgba(139, 69, 19, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0;
}

.main-nav li {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.main-nav li:last-child {
  border-right: none;
}

.main-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  padding: 1rem 1.5rem;
  display: block;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.1);
  border-bottom-color: #f39c12;
  transform: translateY(-2px);
}

/* Hero Section - Adventure Theme */
.hero-section {
  background: linear-gradient(rgba(139, 69, 19, 0.582), rgba(210, 105, 30, 0.596)), url('../../img/hero.svg') center/cover;
  color: #ffffff;
  text-align: center;
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(139, 69, 19, 0.205) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: #f39c12;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  color: #ecf0f1;
  font-weight: 400;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #ffffff;
  padding: 1.2rem 2.5rem;
  text-decoration: none;
  border-radius: 35px;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
  border: 2px solid transparent;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(231, 76, 60, 0.6);
  border-color: #f39c12;
}

/* Quest Card Styles */
.quest-card {
  background: #ffffff;
  border-radius: 15px;
  padding: 2.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 2px solid #f39c12;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.quest-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #e74c3c, #f39c12, #e67e22);
}

.quest-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: #e74c3c;
}

/* Games Grid Layout */
.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
}

.game-quest {
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 2px solid #d35400;
  transition: all 0.3s ease;
}

.game-quest:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(211, 84, 0, 0.2);
}

.game-header {
  background: linear-gradient(135deg, #d35400, #e67e22);
  color: #ffffff;
  padding: 1.5rem;
  text-align: center;
  position: relative;
}

.game-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 15px solid #d35400;
}

.game-title {
  font-size: 1.4rem;
  margin: 0;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.game-frame {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
  background: #f8f9fa;
}

/* About Section - Adventure Style */
.about-section {
  background: #ffffff;
  border-radius: 20px;
  margin: 3rem 0;
  padding: 4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 3px solid #f39c12;
  position: relative;
}

.about-section::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, #e74c3c, #f39c12, #e67e22, #d35400);
  border-radius: 20px;
  z-index: -1;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-text h2 {
  color: #8b4513;
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
}

.about-text p {
  color: #34495e;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Features Section - Quest Style */
.features-section {
  padding: 4rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.feature-quest {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 2px solid #e67e22;
  transition: all 0.3s ease;
  position: relative;
}

.feature-quest::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e74c3c, #f39c12);
  border-radius: 15px 15px 0 0;
}

.feature-quest:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(230, 126, 34, 0.2);
  border-color: #e74c3c;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #e74c3c, #f39c12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.feature-quest h3 {
  color: #8b4513;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.feature-quest p {
  color: #34495e;
  line-height: 1.6;
}

/* Reviews Section */
.reviews-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  padding: 4rem;
  margin: 3rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.review-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #f39c12;
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.review-text {
  font-style: italic;
  color: #34495e;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.review-author {
  font-weight: 600;
  color: #8b4513;
}

.review-rating {
  color: #f39c12;
  margin-top: 0.5rem;
}

/* Contact Form */
.contact-form {
  background: #ffffff;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 2px solid #f39c12;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #8b4513;
  font-family: 'Cinzel', serif;
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #e67e22;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: 'Open Sans', sans-serif;
}

.form-control:focus {
  outline: none;
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #ffffff;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Open Sans', sans-serif;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* Legal Pages */
.legal-content {
  background: #ffffff;
  padding: 4rem;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 2px solid #f39c12;
  margin: 2rem 0;
}

.legal-content h1 {
  color: #8b4513;
  border-bottom: 3px solid #f39c12;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  font-family: 'Cinzel', serif;
}

.legal-content h2 {
  color: #d35400;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.legal-content p {
  color: #34495e;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.legal-content ul {
  margin: 1.5rem 0 1.5rem 2rem;
  color: #34495e;
}

.legal-content li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

/* Footer - Adventure Theme */
.site-footer {
  background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
  color: #ecf0f1;
  padding: 4rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  color: #f39c12;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  font-family: 'Cinzel', serif;
}

.footer-section p,
.footer-section li {
  color: #ffffff;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #f39c12;
}

/* Footer Disclaimer Card */
.footer-disclaimer {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #f39c12;
  border-radius: 15px;
  padding: 2.5rem;
  text-align: center;
  margin-top: 2rem;
  backdrop-filter: blur(10px);
}

.footer-disclaimer h3 {
  color: #f39c12;
  margin-bottom: 1rem;
  font-family: 'Cinzel', serif;
}

.footer-disclaimer p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #ecf0f1;
}

.footer-disclaimer a {
  color: #f39c12;
  text-decoration: none;
  font-weight: 600;
}

.footer-disclaimer a:hover {
  text-decoration: underline;
}

.footer-bottom p{
  text-align: center;
  padding-top: 2rem;
  /* border-top: 1px solid rgba(255, 255, 255, 0.2); */
  color: #ffffff;
  font-size: 0.9rem;
}

/* Age Verification Modal */
.age-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.age-modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 4rem;
  border-radius: 20px;
  text-align: center;
  max-width: 500px;
  margin: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 3px solid #f39c12;
  position: relative;
}

.age-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #e74c3c, #f39c12, #e67e22);
  border-radius: 20px 20px 0 0;
}

.age-modal h2 {
  color: #8b4513;
  margin-bottom: 1rem;
  font-size: 2rem;
  font-family: 'Cinzel', serif;
}

.age-modal p {
  color: #34495e;
  margin-bottom: 2rem;
  line-height: 1.7;
  font-size: 1.1rem;
}

.age-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.age-btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Open Sans', sans-serif;
}

.age-btn.yes {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: #ffffff;
}

.age-btn.yes:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.age-btn.no {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #ffffff;
}

.age-btn.no:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #8b4513, #d2691e);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem 0;
    gap: 0;
  }

  .main-nav li {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav a {
    padding: 1rem 2rem;
    border-bottom: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .container {
    padding: 0 0.5rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .quest-card,
  .legal-content,
  .about-section {
    padding: 2rem;
  }

  .age-modal-content {
    padding: 2.5rem;
    margin: 0.5rem;
  }

  .age-buttons {
    flex-direction: column;
  }

  .age-btn {
    width: 100%;
  }

  .game-frame {
    height: 400px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-disclaimer {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .cta-button {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .game-frame {
    height: 350px;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .quest-card,
  .legal-content,
  .about-section {
    border: 3px solid #000000;
  }
  
  .cta-button,
  .btn-primary {
    border: 2px solid #000000;
  }
}

/* Inline Disclaimer Card (for pages above game sections) */
.disclaimer-card {
  background: linear-gradient(135deg, #fff9f2, #fff5ee);
  border: 2px solid #f39c12;
  border-radius: 12px;
  padding: 1rem 1rem 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
}

.disclaimer-content {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  color: #34495e;
  font-size: 0.98rem;
}

.disclaimer-content strong {
  color: #d35400;
  margin-right: 0.4rem;
}

.disclaimer-link {
  margin-left: 0.6rem;
  color: #e74c3c;
  text-decoration: none;
  font-weight: 600;
}

.disclaimer-close {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  color: #8b4513;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.disclaimer-close:hover {
  background: rgba(227, 115, 65, 0.08);
}

@media (max-width: 768px) {
  .disclaimer-card { flex-direction: column; align-items: flex-start; }
  .disclaimer-close { align-self: flex-end; }
}