/* AotearoaJackpotPlay Landing Page Styles */
/* Color Scheme: Emerald, Metallic Gold, Soft Black */

:root {
  --primary-emerald: #00a86b;
  --secondary-emerald: #2ecc71;
  --accent-emerald: #27ae60;
  --metallic-gold: #ffd700;
  --gold-accent: #ffa500;
  --gold-light: #ffecb3;
  --soft-black: #1c1c1e;
  --charcoal: #2c2c2e;
  --light-gray: #f5f5f7;
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #00a86b 0%, #ffd700 100%);
  --gradient-secondary: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%);
  --gradient-accent: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--soft-black);
  background-color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

h2 {
  font-size: 2.2rem;
  color: var(--soft-black);
}

h3 {
  font-size: 1.8rem;
  color: var(--charcoal);
}

p {
  margin-bottom: 1rem;
  color: var(--charcoal);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--gradient-primary);
  color: var(--white);
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 168, 107, 0.3);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--primary-emerald);
  padding: 12px 30px;
  text-decoration: none;
  border: 2px solid var(--primary-emerald);
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--primary-emerald);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.1rem;
}

.btn-xl {
  padding: 20px 50px;
  font-size: 1.2rem;
  border-radius: 12px;
}

.btn-play-header {
  background: var(--gradient-accent);
  color: var(--soft-black);
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-play-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* Age Verification Modal */
.age-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(28, 28, 30, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(10px);
}

/* Age modal visibility controlled by PHP */

.age-modal-content {
  background: var(--white);
  padding: 3rem;
  border-radius: 16px;
  text-align: center;
  max-width: 500px;
  margin: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.age-modal-content h2 {
  color: var(--primary-emerald);
  margin-bottom: 1.5rem;
}

.age-modal-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--charcoal);
}

.age-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gradient-secondary);
  color: var(--white);
  padding: 20px;
  z-index: 1000;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.cookie-text h3 {
  color: var(--metallic-gold);
  margin-bottom: 0.5rem;
}

.cookie-text p {
  color: var(--light-gray);
  margin: 0;
}

.cookie-text a {
  color: var(--metallic-gold);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-accept {
  background: var(--gradient-accent);
  color: var(--soft-black);
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-decline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-decline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Header */
.header {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.nav-brand h1 {
  margin: 0;
  font-size: 1.8rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-emerald);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: var(--charcoal);
  margin: 3px 0;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Mobile Menu Styles - Only active at 900px and below */
@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    transition: left 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    gap: 1.5rem;
  }

  .menu-toggle:checked + .hamburger + .nav-menu {
    left: 0;
  }

  .menu-toggle:checked + .hamburger .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
  }

  .menu-toggle:checked + .hamburger .hamburger-line:nth-child(2) {
    transform: rotate(-45deg) translateY(-7px);
  }
}

/* Hero Section */
.hero {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 120px 0 80px;
  margin-top: 80px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h2 {
  font-size: 3.2rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero-description {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.disclaimer {
  font-size: 1.4rem;
  color: var(--metallic-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  padding: 1rem;
  border: 2px solid var(--metallic-gold);
  border-radius: 8px;
  background: rgba(255, 215, 0, 0.1);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-buttons .btn-primary {
  background: var(--white);
  color: var(--primary-emerald);
  font-size: 1.1rem;
  padding: 16px 32px;
}

.hero-buttons .btn-secondary {
  border-color: var(--white);
  color: var(--white);
}

.hero-buttons .btn-secondary:hover {
  background: var(--white);
  color: var(--primary-emerald);
}

/* Image Placeholders */
.image-placeholder {
  background: var(--light-gray);
  border: 2px dashed var(--charcoal);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  font-weight: 600;
  aspect-ratio: 16/9;
  min-height: 200px;
}

.hero-image {
  position: relative;
}

.hero-image .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  filter: brightness(0.7);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero-image .image-placeholder {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
}

/* Section Images */
.section-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Play Section */
.play-section {
  background: var(--gradient-secondary);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.play-content h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.play-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.play-disclaimer {
  color: var(--metallic-gold);
  font-weight: 600;
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* Section Styles */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--charcoal);
}

/* About Section */
.about {
  background: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  color: var(--primary-emerald);
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  text-align: justify;
  font-size: 1.05rem;
}

/* Leaderboard Section */
.leaderboard {
  background: var(--light-gray);
}

.leaderboard-table {
  max-width: 800px;
  margin: 0 auto;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  background: var(--white);
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.leaderboard-item:hover {
  transform: translateY(-3px);
}

.leaderboard-item.rank-1 {
  border-left: 5px solid var(--metallic-gold);
  background: linear-gradient(135deg, #fff9c4 0%, #ffffff 100%);
}

.leaderboard-item.rank-2 {
  border-left: 5px solid #c0c0c0;
}

.leaderboard-item.rank-3 {
  border-left: 5px solid #cd7f32;
}

.rank {
  font-size: 2rem;
  font-weight: 700;
  margin-right: 2rem;
  min-width: 60px;
  text-align: center;
}

.player-info {
  flex-grow: 1;
}

.player-info h3 {
  color: var(--primary-emerald);
  margin-bottom: 0.25rem;
  font-size: 1.3rem;
}

.player-info p {
  color: var(--charcoal);
  margin: 0;
  font-size: 0.9rem;
}

.score {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--soft-black);
}

.leaderboard-note {
  text-align: center;
  margin-top: 2rem;
}

.leaderboard-note p {
  color: var(--charcoal);
  font-style: italic;
}

/* Security Section */
.security {
  background: var(--white);
}

.security-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.security-text h3 {
  color: var(--primary-emerald);
  margin-bottom: 1.5rem;
}

.security-text p {
  margin-bottom: 1.5rem;
  text-align: justify;
  font-size: 1.05rem;
}

.certifications h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--soft-black);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.cert-item {
  text-align: center;
  padding: 2rem;
  background: var(--light-gray);
  border-radius: 12px;
  transition: transform 0.3s ease;
  border-top: 4px solid var(--primary-emerald);
}

.cert-item:hover {
  transform: translateY(-5px);
}

.cert-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.cert-item h4 {
  color: var(--primary-emerald);
  margin-bottom: 0.5rem;
}

/* Guide Section */
.guide {
  background: var(--light-gray);
}

.guide-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.guide-text h3 {
  color: var(--primary-emerald);
  margin-bottom: 1.5rem;
}

.guide-text p {
  margin-bottom: 1.5rem;
  text-align: justify;
  font-size: 1.05rem;
}

/* FAQ Section */
.faq {
  background: var(--white);
}

.faq-content {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--light-gray);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  color: var(--primary-emerald);
  margin-bottom: 1rem;
}

.faq-item p {
  text-align: justify;
  font-size: 1.05rem;
}

/* Testimonials Section */
.testimonials {
  background: var(--light-gray);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-top: 4px solid var(--primary-emerald);
}

.testimonial-content {
  margin-bottom: 2rem;
}

.testimonial-content p {
  font-style: italic;
  color: var(--charcoal);
  text-align: justify;
  font-size: 1.05rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
}

.author-info h4 {
  color: var(--soft-black);
  margin-bottom: 0.25rem;
}

.author-info p {
  color: var(--charcoal);
  font-size: 0.9rem;
  margin: 0;
}

/* Contact Section */
.contact {
  background: var(--white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-info h3 {
  color: var(--primary-emerald);
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  font-size: 1.5rem;
}

.contact-text h4 {
  color: var(--primary-emerald);
  margin-bottom: 0.25rem;
}

.contact-text a {
  color: var(--primary-emerald);
  text-decoration: none;
  font-weight: 600;
}

.contact-text a:hover {
  text-decoration: underline;
}

/* Gallery Preview Section */
.gallery-preview {
  background: var(--light-gray);
  padding: 60px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
  background: var(--soft-black);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  color: var(--metallic-gold);
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.footer-column h4 {
  color: var(--metallic-gold);
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: var(--metallic-gold);
}

.footer-banners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 0;
  flex-wrap: wrap;
}

.footer-banners img {
  display: block;
  object-fit: contain;
}

.footer-banners a {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.footer-banners a:hover {
  opacity: 0.8;
}

.h-4 {
  height: 1rem;
}

.h-8 {
  height: 2rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--charcoal);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-disclaimer p {
  color: var(--metallic-gold);
  font-weight: 600;
  margin: 0;
}

.footer-copyright p {
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  /* Hero */
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content h2 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* About, Security, Guide, Contact */
  .about-content,
  .security-content,
  .guide-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Leaderboard */
  .leaderboard-item {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .rank {
    margin-right: 0;
  }

  /* Certifications */
  .cert-grid {
    grid-template-columns: 1fr;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Cookie Banner */
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    justify-content: center;
  }

  /* Age Modal */
  .age-modal-content {
    padding: 2rem;
    margin: 15px;
  }

  .age-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  section {
    padding: 60px 0;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .disclaimer {
    font-size: 1.1rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .leaderboard-item {
    padding: 1rem;
  }

  .cert-item {
    padding: 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.5rem;
  }
}

/* Google Fonts Import */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");
