/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Color Scheme */
:root {
  --primary-blue: #87ceeb;
  --primary-coral: #ff6b6b;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --gray: #95a5a6;
}

/* Header */
.header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo h1 {
  color: var(--primary-blue);
  font-size: 1.8rem;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-coral);
}

.btn-play {
  background: var(--primary-coral);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-play:hover {
  background: #ff5252;
  transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.menu-checkbox {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: relative;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
  position: absolute;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.menu-toggle span:nth-child(1) {
  top: 0;
  width: 100%;
}

.menu-toggle span:nth-child(2) {
  top: 11px;
  width: 100%;
}

.menu-toggle span:nth-child(3) {
  top: 22px;
  width: 100%;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text-dark);
  color: var(--white);
  padding: 1rem 0;
  z-index: 2000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-content p {
  margin: 0;
  flex: 1;
}

.cookie-content a {
  color: var(--primary-blue);
  text-decoration: none;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.btn-cookie {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-cookie.accept {
  background: var(--primary-coral);
  color: var(--white);
}

.btn-cookie.decline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-cookie:hover {
  transform: translateY(-2px);
}

/* 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: 3000;
}

.age-content {
  background: var(--white);
  padding: 3rem;
  border-radius: 15px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.age-content h2 {
  color: var(--primary-coral);
  margin-bottom: 1rem;
}

.age-content p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.age-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-age {
  padding: 1rem 2rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.btn-age.yes {
  background: var(--primary-coral);
  color: var(--white);
}

.btn-age.no {
  background: var(--gray);
  color: var(--white);
}

.btn-age:hover {
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  color: var(--white);
  padding: 120px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("images/Coral-Reel-Plaza.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-text {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.highlight {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-style: italic;
}

.btn-primary {
  background: var(--white);
  color: var(--primary-coral);
  padding: 1rem 2.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Sections */
section {
  padding: 80px 0;
}

section:nth-child(even) {
  background: var(--bg-light);
}

h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 3rem;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.placeholder {
  background: var(--gray);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--white);
  font-size: 1.2rem;
}

.about-image,
.guide-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-image img,
.guide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Leaderboard */
.leaderboard-table {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.leaderboard-header {
  background: var(--primary-blue);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  padding: 1rem;
  font-weight: 600;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  padding: 1rem;
  border-bottom: 1px solid #eee;
  align-items: center;
}

.leaderboard-row:nth-child(even) {
  background: var(--bg-light);
}

.rank {
  font-weight: 600;
  color: var(--primary-coral);
}

/* Safety Section */
.safety-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.safety-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.certificates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.certificate-item {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cert-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.certificate-item h3 {
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

/* Guide Section */
.guide-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.guide-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* FAQ Section */
.faq-content {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.review-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.review-card h4 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

/* Contact */
.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-info {
  margin-top: 2rem;
}

.contact-info p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.contact-info a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
}

.contact-info a:hover {
  color: var(--primary-coral);
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 2rem 0;
  text-align: center;
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--primary-blue);
  text-decoration: none;
  margin: 0 1rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-coral);
}

.footer-banners {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.footer-banner {
  display: block;
  height: auto;
  object-fit: contain;
}

.footer-banner.age-banner {
  height: 2rem;
  cursor: default;
}

.footer-banner.gambleaware-banner {
  height: 1rem;
}

.footer-banner.gamcare-banner {
  height: 2rem;
}

.footer-banner-link {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.footer-banner-link:hover {
  opacity: 0.8;
}

/* Legal Pages */
.legal-page {
  background: var(--bg-light);
}

.legal-main {
  padding: 120px 0 80px;
  min-height: calc(100vh - 200px);
}

.legal-main h1 {
  color: var(--primary-blue);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.legal-main h2 {
  color: var(--primary-coral);
  font-size: 1.8rem;
  margin: 2.5rem 0 1.5rem;
  text-align: left;
}

.legal-main h3 {
  color: var(--text-dark);
  font-size: 1.3rem;
  margin: 2rem 0 1rem;
}

.legal-main p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.legal-main ul {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.legal-main li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.last-updated {
  color: var(--gray);
  font-style: italic;
  margin-bottom: 3rem;
}

.cookies-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.cookies-table th,
.cookies-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.cookies-table th {
  background: var(--primary-blue);
  color: var(--white);
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 70px;
    right: 0;
    background: var(--white);
    flex-direction: column;
    width: 250px;
    height: calc(100vh - 70px);
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    gap: 1.5rem;
  }

  .menu-checkbox:checked ~ .nav {
    transform: translateX(0);
  }

  .menu-checkbox:checked ~ .menu-toggle span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
  }

  .menu-checkbox:checked ~ .menu-toggle span:nth-child(2) {
    transform: scale(0);
  }

  .menu-checkbox:checked ~ .menu-toggle span:nth-child(3) {
    transform: rotate(-45deg);
    top: 11px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .hero-text {
    font-size: 1.1rem;
  }

  .about-content,
  .safety-content,
  .guide-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .certificates {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-cookie {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero {
    padding: 100px 0 60px;
  }

  section {
    padding: 60px 0;
  }

  h2 {
    font-size: 2rem;
  }

  .leaderboard-table {
    font-size: 0.9rem;
  }

  .age-content {
    padding: 2rem 1.5rem;
  }

  .age-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-age {
    width: 100%;
  }

  .nav {
    width: 100%;
  }
}

/* Hide elements by default */
#cookieBanner {
  display: none;
}

#ageModal {
  display: none;
}
