/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header styles */
#header {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 2px solid #ffd700;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.logo h1 {
  color: #ffd700;
  font-size: 22px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Navigation styles */
#nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
}

.play-mobile {
  display: none;
}

.nav-menu a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: #ffd700;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffd700;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Play now button */
.play-now {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #1a1a2e;
  padding: 8px 20px;
  text-decoration: none;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  white-space: nowrap;
}

.play-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
  color: #1a1a2e;
}

/* Mobile menu toggle */
#menu-toggle {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #ffd700;
  margin: 3px 0;
  transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
}

/* Hero section */
.hero {
  padding: 150px 0 100px;
  text-align: center;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("images/Midnight Reel Atrium.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.85) 0%,
    rgba(22, 33, 62, 0.85) 50%,
    rgba(15, 52, 96, 0.85) 100%
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: #ffd700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #ffffff;
}

.highlight {
  font-size: 1.8rem;
  color: #ffd700;
  font-weight: bold;
  margin: 30px 0;
  display: block;
}

.free-text {
  font-size: 1.3rem;
  margin: 30px 0;
  color: #e0e0e0;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #1a1a2e;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  margin: 20px 10px;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
  color: #1a1a2e;
}

/* Section styles */
section {
  padding: 80px 0;
}

section h2 {
  font-size: 2.5rem;
  color: #ffd700;
  text-align: center;
  margin-bottom: 50px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* About section */
.about {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  margin: 20px;
  color: #ffffff;
}

.about-content p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.8;
}

/* Image placeholder */
.image-placeholder {
  width: 100%;
  max-width: 800px;
  height: 450px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px auto;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Leaderboard */
.leaderboard {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  margin: 20px;
  color: #ffffff;
}

.leaderboard-table {
  max-width: 600px;
  margin: 0 auto 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
}

.leaderboard-header {
  display: grid;
  grid-template-columns: 80px 1fr 120px;
  background: rgba(255, 215, 0, 0.2);
  padding: 20px;
  font-weight: bold;
  color: #ffd700;
}

.leaderboard-item {
  display: grid;
  grid-template-columns: 80px 1fr 120px;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

.leaderboard-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.leaderboard-item:last-child {
  border-bottom: none;
}

/* Security section */
.security {
  color: #ffffff;
}

.security-content p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.8;
}

.certificates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.certificate-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s ease;
}

.certificate-item:hover {
  transform: translateY(-5px);
}

.cert-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.certificate-item h3 {
  color: #ffd700;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

/* Guide section */
.guide {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  margin: 20px;
  color: #ffffff;
}

.guide-content p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.8;
  color: #ffffff;
}

/* FAQ section */
.faq {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  margin: 20px;
  color: #ffffff;
}

.faq-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 20px;
}

.faq-item h3 {
  color: #ffd700;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.faq-item p {
  line-height: 1.7;
}

/* Testimonials */
.testimonials {
  color: #ffffff;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 15px;
  line-height: 1.7;
}

.testimonial-author {
  color: #ffd700;
  font-weight: bold;
}

/* Contact section */
.contact {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  margin: 20px;
  color: #ffffff;
  text-align: center;
}

.contact-content p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.8;
}

.email-link,
.website-link {
  color: #ffd700;
  text-decoration: none;
  font-weight: bold;
  word-break: break-all;
}

.email-link:hover,
.website-link:hover {
  text-decoration: underline;
}

/* Footer */
#footer {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  border-top: 2px solid #ffd700;
  color: #ffffff;
  text-align: center;
  padding: 30px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #ffd700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

/* Footer banners */
.footer-banners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.footer-banner {
  display: block;
  object-fit: contain;
}

.footer-banner.age-banner {
  height: 2rem;
}

.footer-banner.gambleaware-banner {
  height: 1rem;
}

.footer-banner.gamcare-banner {
  height: 2rem;
}

.footer-banners a {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.footer-banners a:hover {
  opacity: 0.8;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 46, 0.98);
  backdrop-filter: blur(10px);
  border-top: 2px solid #ffd700;
  padding: 20px;
  z-index: 2000;
  display: none;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-content p {
  color: #ffffff;
  margin: 0;
  flex: 1;
}

.cookie-content a {
  color: #ffd700;
  text-decoration: none;
}

.cookie-buttons {
  display: flex;
  gap: 15px;
}

.cookie-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-btn.accept {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #1a1a2e;
}

.cookie-btn.reject {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.cookie-btn:hover {
  transform: translateY(-2px);
}

/* Age modal */
.age-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.age-content {
  background: rgba(26, 26, 46, 0.95);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 400px;
  border: 2px solid #ffd700;
}

.age-content h2 {
  color: #ffd700;
  margin-bottom: 20px;
}

.age-content p {
  color: #ffffff;
  margin-bottom: 30px;
  font-size: 1.2rem;
}

.age-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.age-btn {
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.age-btn.yes {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #1a1a2e;
}

.age-btn.no {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.age-btn:hover {
  transform: translateY(-2px);
}

/* Legal pages */
.legal-page {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #ffffff;
  min-height: 100vh;
  padding: 100px 0 50px;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.legal-content h1 {
  color: #ffd700;
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-align: center;
}

.legal-content h2 {
  color: #ffd700;
  font-size: 1.8rem;
  margin: 30px 0 15px;
}

.legal-content h3 {
  color: #ffd700;
  font-size: 1.4rem;
  margin: 20px 0 10px;
}

.legal-content p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.legal-content ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.legal-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.last-updated {
  text-align: center;
  color: #cccccc;
  font-style: italic;
  margin-bottom: 30px;
}

.back-link {
  margin-top: 40px;
  text-align: center;
}

.back-link a {
  color: #ffd700;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
}

.back-link a:hover {
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 900px) {
  /* Mobile menu */
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    right: 0;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    width: 250px;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 2px solid #ffd700;
    border-bottom: 2px solid #ffd700;
    border-radius: 0 0 0 20px;
  }

  #menu-toggle:checked ~ .nav-menu {
    transform: translateX(0);
  }

  #menu-toggle:checked ~ .menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  #menu-toggle:checked ~ .menu-toggle span:nth-child(2) {
    transform: scale(0);
  }

  #menu-toggle:checked ~ .menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .play-now.desktop {
    display: none;
  }

  .play-mobile {
    display: block;
    margin-top: 20px;
  }

  .play-mobile .play-now {
    display: inline-block;
    width: 100%;
    text-align: center;
  }

  /* Hero adjustments */
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .highlight {
    font-size: 1.4rem;
  }

  .free-text {
    font-size: 1.1rem;
  }

  /* Responsive sections */
  section {
    padding: 60px 0;
  }

  section h2 {
    font-size: 2rem;
  }

  .about,
  .leaderboard,
  .faq {
    margin: 10px;
  }

  /* Responsive grid */
  .certificates {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Responsive footer */
  .footer-links {
    flex-direction: column;
    gap: 15px;
  }

  /* Cookie banner responsive */
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    justify-content: center;
  }

  /* Legal pages responsive */
  .legal-content {
    margin: 0 10px;
    padding: 20px;
  }

  .legal-content h1 {
    font-size: 2rem;
  }

  .legal-content h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .nav-menu {
    width: 200px;
  }

  .age-content {
    margin: 20px;
    padding: 30px 20px;
  }

  .age-buttons {
    flex-direction: column;
    gap: 10px;
  }
}
