/* 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: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Colors and Variables */
:root {
  --primary-blue: #1e3c72;
  --secondary-blue: #2a5298;
  --gold: #ffd700;
  --gold-light: #ffed4e;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --medium-gray: #6c757d;
  --dark-gray: #343a40;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;
}

/* Header Styles */
header {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
  color: var(--white);
  padding: 0.6rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-play {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  white-space: nowrap;
}

.btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* Mobile Menu Toggle */
.menu-checkbox {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--white);
  margin: 3px 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: absolute;
  right: 0;
}

.menu-toggle span:nth-child(1) {
  top: 0;
}

.menu-toggle span:nth-child(2) {
  top: 8px;
}

.menu-toggle span:nth-child(3) {
  top: 16px;
}

.menu-checkbox:checked ~ .menu-toggle span:nth-child(1) {
  transform: rotate(45deg);
  top: 8px;
}

.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: 8px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  max-width: 400px;
  margin: 0 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.modal-buttons .btn-secondary {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.modal-buttons .btn-secondary:hover {
  background: var(--primary-blue);
  color: var(--white);
}

/* Cookie Banner */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark-gray);
  color: var(--white);
  padding: 1rem 0;
  z-index: 1500;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

/* Button Styles */
.btn-primary,
.btn-secondary {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--primary-blue);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-blue);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  color: var(--white);
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("images/Royal Blue Casino Glow Background.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: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.hero-text {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.highlight {
  color: var(--gold);
  font-weight: 600;
}

.hero-cta {
  margin-top: 2rem;
}

/* Section Styles */
.section {
  padding: 80px 0;
  background: var(--white);
}

.bg-light {
  background: var(--light-gray);
}

.section h2 {
  font-size: 2.5rem;
  color: var(--primary-blue);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1rem auto 0;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: var(--dark-gray);
}

.about-image {
  border-radius: 15px;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

/* Leaderboard */
.leaderboard-section {
  position: relative;
  overflow: hidden;
}

.leaderboard-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("images/Virtual Rewards & Leaderboards Theme.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.leaderboard-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.leaderboard-section .container {
  position: relative;
  z-index: 1;
}

.leaderboard-table {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
}

.leaderboard-header {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
  color: var(--white);
  display: grid;
  grid-template-columns: 80px 1fr 150px;
  padding: 1rem 1.5rem;
  font-weight: 600;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 80px 1fr 150px;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.leaderboard-row:hover {
  background: var(--light-gray);
  transform: translateX(5px);
}

.leaderboard-row:last-child {
  border-bottom: none;
}

.rank {
  font-weight: 700;
  color: var(--primary-blue);
}

.leaderboard-row:nth-child(1) .rank {
  color: var(--gold);
}

.leaderboard-row:nth-child(2) .rank {
  color: #c0c0c0;
}

.leaderboard-row:nth-child(3) .rank {
  color: #cd7f32;
}

/* Safety Section */
.safety-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.safety-text p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: var(--dark-gray);
}

.certificates h3 {
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

.certificate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.certificate-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.certificate-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.certificate-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.certificate-item h4 {
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.certificate-item p {
  color: var(--medium-gray);
  font-size: 0.9rem;
}

/* Guide Section */
.guide-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.guide-text p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: var(--dark-gray);
}

.guide-text strong {
  color: var(--primary-blue);
}

.guide-image {
  border-radius: 15px;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.guide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

/* FAQ Section */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.faq-item p {
  color: var(--dark-gray);
  line-height: 1.7;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.testimonial-content p {
  color: var(--dark-gray);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  border-top: 2px solid var(--gold);
  padding-top: 1rem;
}

.testimonial-author strong {
  color: var(--primary-blue);
  display: block;
  margin-bottom: 0.25rem;
}

.testimonial-author span {
  color: var(--medium-gray);
  font-size: 0.9rem;
}

/* Contact Section */
.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-content p {
  margin-bottom: 2rem;
  line-height: 1.7;
  color: var(--dark-gray);
}

.contact-info {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
}

.contact-item {
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item strong {
  color: var(--primary-blue);
  min-width: 80px;
}

.contact-item a {
  color: var(--secondary-blue);
  text-decoration: none;
  word-break: break-all;
}

.contact-item a:hover {
  color: var(--gold);
}

/* Footer */
.footer {
  background: var(--dark-gray);
  color: var(--white);
  padding: 2rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-banners {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-banner {
  display: block;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.footer-banner-link {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-banner-link:hover {
  opacity: 0.8;
}

.age-banner {
  height: 2rem;
}

.gambleaware-banner {
  height: 1rem;
}

.gamcare-banner {
  height: 2rem;
}

/* Legal Pages */
.legal-header {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
  color: var(--white);
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.back-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-block;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--white);
}

.legal-main {
  background: var(--white);
  padding: 2rem 0;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
  font-size: 2rem;
}

.legal-content h3 {
  color: var(--secondary-blue);
  margin: 2rem 0 1rem 0;
  font-size: 1.3rem;
}

.legal-content h4 {
  color: var(--primary-blue);
  margin: 1.5rem 0 0.5rem 0;
}

.legal-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--dark-gray);
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--dark-gray);
}

.last-updated {
  color: var(--medium-gray);
  font-style: italic;
  margin-bottom: 2rem;
}

/* Cookie Table */
.cookie-table {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.cookie-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.cookie-table th,
.cookie-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.cookie-table th {
  background: var(--primary-blue);
  color: var(--white);
  font-weight: 600;
}

.cookie-table tr:hover {
  background: var(--light-gray);
}

/* Placeholder */
.placeholder {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  color: var(--medium-gray);
  font-weight: 500;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Section CTA */
.section-cta {
  text-align: center;
  margin-top: 3rem;
}

.contact-cta {
  margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 900px) {
  /* Mobile Navigation */
  .menu-toggle {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--primary-blue);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    gap: 1rem;
  }

  .menu-checkbox:checked ~ nav {
    transform: translateX(0);
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
  }

  .btn-play {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }

  /* Hero adjustments */
  .hero {
    padding: 100px 0 60px;
  }

  .hero h2 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  /* Grid adjustments */
  .about-content,
  .safety-content,
  .guide-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .certificate-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Leaderboard adjustments */
  .leaderboard-header,
  .leaderboard-row {
    grid-template-columns: 60px 1fr 120px;
    padding: 1rem;
    font-size: 0.9rem;
  }

  /* Legal content */
  .legal-content {
    padding: 0 1rem;
  }

  .cookie-table {
    font-size: 0.9rem;
  }

  .cookie-table th,
  .cookie-table td {
    padding: 0.75rem;
  }

  /* Footer adjustments */
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-banners {
    justify-content: center;
    width: 100%;
  }

  /* Contact adjustments */
  .contact-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  /* Modal adjustments */
  .modal-content {
    margin: 0 1rem;
    padding: 1.5rem;
  }

  .modal-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Cookie banner adjustments */
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cookie-buttons button {
    width: 100%;
  }
}

@media (max-width: 600px) {
  /* Further mobile adjustments */
  .container {
    padding: 0 15px;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .section h2 {
    font-size: 2rem;
  }

  .section {
    padding: 60px 0;
  }

  .leaderboard-header,
  .leaderboard-row {
    grid-template-columns: 50px 1fr 100px;
    padding: 0.75rem;
    font-size: 0.85rem;
  }

  .certificate-item {
    padding: 1rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .contact-info {
    padding: 1.5rem;
  }

  .legal-header h1 {
    font-size: 1.8rem;
  }

  .legal-content h2 {
    font-size: 1.8rem;
  }

  .legal-content h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 400px) {
  /* Very small screens */
  .logo h1 {
    font-size: 1.5rem;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .section h2 {
    font-size: 1.8rem;
  }

  .leaderboard-header,
  .leaderboard-row {
    grid-template-columns: 40px 1fr 80px;
    font-size: 0.8rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Print Styles */
@media print {
  header,
  .cookie-banner,
  .modal,
  .footer {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .section {
    padding: 20px 0 !important;
  }
}
