/* Base Colors */
:root {
  --gold: #ffcc00;
  --dark: #21130d;
  --white: #ffffff;
  --light-gray: #f5f5f5;
}

/* Global Styles */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #21130d;
  color: var(--dark);
  padding-top: 2.5rem; /* ✅ makes space for the fixed ticker */
}

h1, h2, h3 {
  color: var(--dark);
}

.hero h1 {
  color: var(--white);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Header */
.header {
  background-color: var(--dark);
  padding: 1rem 2rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0; /* remove left/right padding */
  z-index: 2;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
    padding: 0 1rem; /* slight spacing to prevent touching edge */
}

.logo {
  height: 50px;
  width: 150px;
  object-fit: cover;
  object-position: center;
  overflow: hidden;
  border-radius: 6px;
}

.nav {
  display: none;
  position: absolute;
  top: 100%; /* directly below .menu-toggle */
  right: 0;
  background-color: var(--dark);
  flex-direction: row;
  gap: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(-10px);
  z-index: 1000;
}

.menu-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem; /* adds space between icons and burger */
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav.active {
  display: flex;
  flex-direction: row; /* Horizontal layout */
  background-color: var(--dark);
  position: absolute;
  top: 60px; /* just below the header */
  right: 0;
  padding: 0.5rem 1rem;
  width: auto; /* let the content define the width */
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  gap: 1rem; /* spacing between links */
  border-radius: 0 0 8px 8px;
}

.nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
}

.menu-toggle {
  display: block;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background-color: transparent;
  background-image: url('../images/icons8-hamburger-menu-50.png'); /* ← use your image */
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: none;
  margin-left: auto;
}

.menu-toggle::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg width="50" height="50" viewBox="0 0 24 24" fill="white" xmlns="http://www.w3.org/2000/svg"><rect y="4" width="24" height="2" rx="1"/><rect y="11" width="24" height="2" rx="1"/><rect y="18" width="24" height="2" rx="1"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.menu-toggle:focus {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.menu-toggle.active {
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .nav {
    display: flex;
    flex-direction: column;
    background-color: var(--dark);
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    padding: 1rem 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease-in-out;
  }

  .nav a {
    padding: 1rem 0;
    font-size: 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    text-align: center;
  }

  .menu-toggle {
    display: block;
  }

.header-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  filter: invert(1); /* makes white icons visible on dark header */
}

  .hero {
    padding: 3rem 1.5rem;
    background-position: center top;
    background-size: cover;
    text-align: center;
  }

  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .hero p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .btn-primary {
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
  }
}

/* Hero Section */
.hero {
  min-height: 50vh; /* makes it 50% of the viewport height */
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('../images/hero-background.png') no-repeat center center/cover;
  color: var(--white);
  text-align: center;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.hero p {
  font-size: 1.25rem;
  margin: 1rem 0 2rem;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--dark);
  padding: 0.75rem 2rem;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background-color: #e6b800;
}

/* Rounded corners for hero background image */
.hero {
  border-radius: 24px;
  overflow: hidden;      /* clips the background to the rounded shape */
}

/* Slightly smaller radius on mobile */
@media (max-width: 768px) {
  .hero { border-radius: 16px; }
}

/* Competitions */
.competitions h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #f0f0f0;
}

/* Competition grid: 1 col mobile, 2 cols tablet, 3 cols desktop */
.competition-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr; /* mobile: single column */
}

/* medium screens: 2 cards per row */
@media (min-width: 768px) {
  .competition-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* desktop: 3 cards per row */
@media (min-width: 1024px) {
  .competition-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


.competition-card {
  background-color: var(--white);
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 360px;           /* keeps them “portrait” rather than super wide */
  margin: 0 auto;             /* center card within its grid cell */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.competition-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.competition-card img {
  width: 100%;
  aspect-ratio: 4 / 3;        /* force a nice landscape image inside portrait card */
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.competition-card h3 {
  margin: 0.25rem 0 0.35rem;
}

.competition-card p {
  margin: 0.25rem 0;
}

/* Draw date label at the top of each card */
.comp-draw-date {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.8;
  margin: 0 0 0.3rem;
}

/* Competition title on card */
.comp-title {
  margin: 0 0 0.6rem;
}

/* Countdown row */
.countdown {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  align-items: baseline;
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.countdown-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

/* Tickets progress “slider” under the countdown */
.tickets {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  text-align: left;
}

.tickets-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.tickets-bar {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #eee;
  overflow: hidden;
}

.tickets-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #ff9900);
}


.btn-secondary {
  display: inline-block;
  margin-top: 1rem;
  background-color: var(--dark);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}

.btn-secondary:hover {
  background-color: #f0f0f0;
}

/* How It Works */
.how-it-works ol {
  max-width: 600px;
  margin: 0 auto;
  padding-left: 1.2rem;
  font-size: 1.1rem;
  color: #f0f0f0;
}

/* Winners */
.winner-gallery {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  color: #f0f0f0;
}

.winner-gallery div {
  text-align: center;
}

.winner-gallery img {
  width: 150px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
  color: #f0f0f0;
}

.footer a {
  color: var(--gold);
  text-decoration: none;
  margin: 0 0.5rem;
}

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

.ticker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--gold);
  color: var(--dark);
  font-weight: bold;
  font-size: 0.95rem;
  overflow: hidden;
  white-space: nowrap;
  z-index: 1;
  padding: 0.5rem 0;
}

.ticker-text {
  display: inline-block;
  min-width: 100%;
  padding-left: 100%;
  animation: ticker-scroll 30s linear infinite; /* slower */
}


@keyframes ticker-scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media (max-width: 600px) {
  .ticker {
    font-size: 0.75rem;
    padding: 0.4rem 0;
  }
}

@media (max-width: 600px) {
  .ticker-text {
    animation-duration: 40s;
  }
}

.footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer a {
  color: var(--white);
  text-decoration: none;
  margin: 0 0.5rem;
}

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

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-logo {
  width: 120px;
}

.social-icons img {
  width: 24px;
  height: 24px;
  margin: 0 0.5rem;
  transition: transform 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.1);
}

.footer-links {
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.footer-bottom {
  font-size: 0.85rem;
}

.offbeat-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.offbeat-logo {
  width: 18px;
  height: 18px;
  border-radius: 3px;
}

@media (max-width: 600px) {
  .footer {
    padding: 1.5rem 1rem;
    font-size: 0.85rem;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
  }

  .footer-logo {
    width: 100px;
    margin-bottom: 0.5rem;
  }

  .social-icons img {
    width: 20px;
    height: 20px;
    margin: 0 0.4rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .footer-bottom p {
    margin: 0.5rem 0;
  }

  .offbeat-link {
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
  }

  .offbeat-logo {
    width: 20px;
    height: 20px;
  }
}

/* Smoother scrolling for in-page links */
html {
  scroll-behavior: smooth;
}

/* Improve section spacing */
section {
  padding: 3rem 1rem;
}

/* Competition card spacing */
.competition-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.competition-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Make button hover states consistent */
.btn-secondary:hover {
  background-color: var(--gold);
  color: var(--dark);
}

/* Add subtle shadow to hero text for readability */
.hero h1,
.hero p {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Improve responsiveness for .winner-gallery */
.winner-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.winner-gallery div {
  flex: 1 1 150px;
  max-width: 180px;
}

/* Better spacing for footer sections on mobile */
@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav.active {
    top: 56px;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 1rem;
  }
}

/* Improve menu toggle accessibility focus */
.menu-toggle:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Cookie popup styles */
.cookie-popup {
  position: fixed;
  bottom: 1.5rem;
  left: 1rem;
  right: 1rem;
  max-width: 400px;
  margin: 0 auto;
  background-color: var(--dark);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  z-index: 10000;
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.cookie-content p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.cookie-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.btn-accept,
.btn-reject {
  flex: 1;
  padding: 0.6rem 1rem;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-accept {
  background-color: var(--gold);
  color: var(--dark);
}

.btn-accept:hover {
  background-color: #e6b800;
}

.btn-reject {
  background-color: #777;
  color: #fff;
}

.btn-reject:hover {
  background-color: #555;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stats Section */
.stats {
  background-color: #393e41;
  padding: 3rem 1rem;
  text-align: center;
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat-card {
  background-color: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  flex: 1 1 200px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease-in-out;
}

.stat-card p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--dark);
}

@media (max-width: 768px) {
  .stat-number {
    font-size: 2rem;
  }

  .stat-card {
    padding: 1.5rem;
  }
}


/* === Launch waitlist styles === */
.optin-card {
  max-width: 520px;
  margin: 1.5rem auto 0;
  background: var(--white);
  color: var(--dark);
  padding: 1.25rem;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}
.form-group label {
  font-weight: 500;
}
.form-group input[type="text"],
.form-group input[type="email"] {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
}
.form-group input:focus,
.form-check input:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.6rem 0 1rem;
}
.form-check input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
}
.form-status {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}
.form-smallprint {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  opacity: 0.85;
}
.hero h1 {
  font-size: 2.25rem;
}
.hero p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
    .admin-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.25rem;
      margin-top: 0.25rem;
    }
    .admin-chip-btn {
      font-size: 0.7rem;
      border-radius: 999px;
      padding: 0.15rem 0.6rem;
      border: 1px solid rgba(255,255,255,0.35);
      background: transparent;
      cursor: pointer;
    }
    .admin-chip-btn.danger {
      border-color: rgba(255, 99, 132, 0.75);
    }

    /* === FAQ page styling === */

.faq-section {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--light-gray);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
  color: var(--dark);
}

/* Headings inside FAQ block */
.faq-container h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dark);
}

/* Individual FAQ items */
.faq-container details {
  background-color: #ffffff;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.faq-container details[open] {
  border-color: var(--gold);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* Summary (question row) */
.faq-container summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Remove default marker */
.faq-container summary::-webkit-details-marker {
  display: none;
}

/* Custom chevron */
.faq-container summary::after {
  content: "▾";
  font-size: 0.9rem;
  margin-left: 0.5rem;
  transition: transform 0.2s ease;
}

.faq-container details[open] summary::after {
  transform: rotate(180deg);
}

/* Answer text */
.faq-container details p {
  margin-top: 0.65rem;
  margin-bottom: 0;
  line-height: 1.5;
  font-size: 0.96rem;
}

/* “Still stuck?” footer note */
.faq-footer-note {
  margin-top: 2rem;
  font-size: 0.9rem;
  text-align: center;
}

.faq-footer-note a {
  color: var(--dark);
  text-decoration: underline;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .faq-container {
    padding: 1.5rem 1.1rem;
    border-radius: 12px;
  }

  .faq-container details {
    padding: 0.7rem 0.85rem;
  }
}

/* === Checkout layout === */

.checkout-section {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.checkout-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Override the global optin-card max-width just on checkout */
.checkout-layout .optin-card {
  max-width: none;
  margin: 0;
}

/* Top summary card */
.checkout-summary {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.checkout-summary-image {
  flex: 0 0 240px;
  max-width: 100%;
}

.checkout-summary-image img {
  width: 100%;
  border-radius: 0.75rem;
  object-fit: cover;
}

.checkout-summary-body {
  flex: 1 1 260px;
  min-width: 260px;
}

/* Bottom two cards in a row, equal width */
.checkout-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* equal width */
  gap: 1.5rem;
  align-items: flex-start;
}

/* Small text tweaks */
.checkout-comp-id {
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 0.1rem 0 0.4rem;
}

.checkout-comp-desc {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.checkout-comp-price {
  font-weight: 500;
}

.checkout-title {
  font-size: 1rem;
  font-weight: 500;
  margin: 0.2rem 0;
}

.checkout-entry h3 {
  font-size: 1rem;
  margin: 1rem 0 0.5rem;
}

.checkout-hint {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

.checkout-text {
  font-size: 0.9rem;
  opacity: 0.9;
}

.checkout-text-small {
  margin-top: 1rem;
  font-size: 0.8rem;
  opacity: 0.8;
}

.checkout-divider {
  border-top: 1px solid #eee;
  padding-top: 0.75rem;
}

.checkout-pay-btn {
  width: 100%;
  margin-bottom: 0.5rem;
}

/* Responsive: stack the bottom cards on mobile */
@media (max-width: 768px) {
  .checkout-cards {
    grid-template-columns: 1fr;
  }

  .checkout-summary-image {
    flex: 0 0 100%;
  }
}
