/* 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-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Color Scheme: Emerald Green, Graphite, Gold Highlights */
:root {
  --emerald-green: #10b981;
  --emerald-dark: #059669;
  --graphite: #374151;
  --graphite-dark: #1f2937;
  --gold: #f59e0b;
  --gold-dark: #d97706;
  --white: #ffffff;
  --light-gray: #f3f4f6;
  --medium-gray: #9ca3af;
  --dark-gray: #6b7280;
}

/* Header */
.header {
  background: linear-gradient(
    135deg,
    var(--emerald-green),
    var(--emerald-dark)
  );
  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-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0.8rem;
  margin: 0;
}

.nav-list a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.nav-list a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
  background: var(--graphite);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--graphite-dark);
  transform: translateY(-2px);
}

.btn-play {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  font-size: 0.9rem;
  padding: 0.5rem 1.5rem;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
}

.menu-toggle-label {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: relative;
}

.menu-toggle-label span {
  display: block;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  position: absolute;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.menu-toggle-label span:nth-child(1) {
  top: 0;
  width: 100%;
}

.menu-toggle-label span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
}

.menu-toggle-label span:nth-child(3) {
  bottom: 0;
  width: 100%;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("images/ChipMasters Arena Glow.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.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;
}

.highlight {
  color: var(--gold);
  font-weight: 700;
}

/* Sections */
section {
  padding: 80px 0;
}

section:nth-child(even) {
  background-color: var(--white);
}

section:nth-child(odd) {
  background-color: var(--light-gray);
}

h2 {
  font-size: 2.5rem;
  color: var(--graphite);
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 700;
}

/* About Section */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--dark-gray);
}

/* Leaderboard */
.leaderboard {
  text-align: center;
}

.leaderboard-table {
  max-width: 600px;
  margin: 0 auto 3rem;
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.leaderboard-header {
  background: var(--graphite);
  color: var(--white);
  display: grid;
  grid-template-columns: 50px 1fr 100px 80px;
  gap: 1rem;
  padding: 1rem;
  font-weight: 600;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 50px 1fr 100px 80px;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--light-gray);
  transition: background-color 0.3s ease;
}

.leaderboard-row:hover {
  background-color: var(--light-gray);
}

.leaderboard-row:last-child {
  border-bottom: none;
}

.rank {
  font-weight: 700;
  color: var(--emerald-green);
}

/* Security Section */
.security-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.security-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--dark-gray);
}

.certificates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.certificate-item {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.certificate-item:hover {
  transform: translateY(-5px);
}

.certificate-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.certificate-item h3 {
  color: var(--emerald-green);
  margin-bottom: 0.5rem;
}

/* Guide Section */
.guide {
  text-align: center;
}

.guide-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.guide-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--dark-gray);
}

.guide-content ul {
  text-align: left;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.guide-content li {
  margin-bottom: 0.5rem;
  color: var(--dark-gray);
}

/* FAQ Section */
.faq-content {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
  color: var(--emerald-green);
  margin-bottom: 1rem;
}

.faq-item p {
  color: var(--dark-gray);
  line-height: 1.7;
}

/* Reviews */
.reviews {
  text-align: center;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.review-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.review-header h4 {
  color: var(--graphite);
  font-weight: 600;
}

.rating {
  color: var(--gold);
}

/* Contact */
.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-content p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: var(--dark-gray);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.contact-item {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-item h3 {
  color: var(--emerald-green);
  margin-bottom: 1rem;
}

.contact-item a {
  color: var(--graphite);
  text-decoration: none;
  font-weight: 600;
  word-break: break-word;
  overflow-wrap: break-word;
}

.contact-item a:hover {
  color: var(--emerald-green);
}

/* Footer */
.footer {
  background: var(--graphite-dark);
  color: var(--white);
  padding: 2rem 0;
  text-align: center;
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--medium-gray);
  text-decoration: none;
  margin: 0 1rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-badge {
  display: block;
}

.footer-badge-gambleaware {
  height: 1rem;
}

.footer-badge-18 {
  height: 2rem;
}

.footer-badge-gamcare {
  height: 2rem;
}

/* Section Images */
.section-image {
  margin: 2rem 0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
}

/* 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: 3rem;
  border-radius: 20px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
  color: var(--emerald-green);
  margin-bottom: 1rem;
}

.modal-content p {
  margin-bottom: 2rem;
  color: var(--dark-gray);
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Cookie Banner */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--graphite-dark);
  color: var(--white);
  padding: 1rem 0;
  z-index: 1500;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-content p {
  margin: 0;
  flex: 1;
}

.cookie-content a {
  color: var(--gold);
  text-decoration: none;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

/* Legal Pages */
.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 3rem;
}

.legal-page h1 {
  color: var(--emerald-green);
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
  text-align: center;
  border-bottom: 3px solid var(--emerald-green);
  padding-bottom: 1rem;
}

.legal-page h2 {
  color: var(--graphite);
  margin: 2.5rem 0 1rem;
  font-size: 1.8rem;
  text-align: left;
  padding-top: 1rem;
  border-top: 2px solid var(--light-gray);
}

.legal-page h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.legal-page h3 {
  color: var(--emerald-green);
  margin: 2rem 0 1rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.legal-page h4 {
  color: var(--graphite);
  margin: 1.5rem 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.legal-page p {
  margin-bottom: 1.2rem;
  color: var(--dark-gray);
  line-height: 1.8;
  text-align: justify;
}

.legal-page ul {
  margin: 1.2rem 0 1.2rem 2rem;
  line-height: 1.8;
}

.legal-page li {
  margin-bottom: 0.75rem;
  color: var(--dark-gray);
}

.legal-page section {
  margin-bottom: 2rem;
}

.last-updated {
  color: var(--medium-gray);
  font-style: italic;
  margin-bottom: 2rem;
}

.main-content {
  margin-top: 70px;
  min-height: calc(100vh - 160px);
  padding: 2rem 0;
}

/* Cookie Table */
.cookie-table {
  overflow-x: auto;
  margin: 2rem 0;
}

.cookie-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.cookie-table th,
.cookie-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--light-gray);
}

.cookie-table th {
  background: var(--graphite);
  color: var(--white);
  font-weight: 600;
}

.cookie-table tr:hover {
  background: var(--light-gray);
}

/* Responsive Design */
@media (max-width: 900px) {
  /* Mobile Menu */
  .menu-toggle-label {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 50px;
    right: 0;
    background: var(--graphite-dark);
    flex-direction: column;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    width: 280px;
    height: calc(100vh - 50px);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
  }

  .menu-toggle:checked ~ .nav {
    transform: translateX(0);
  }

  /* Burger Animation */
  .menu-toggle:checked ~ .menu-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .menu-toggle:checked ~ .menu-toggle-label span:nth-child(2) {
    transform: scale(0);
  }

  .menu-toggle:checked ~ .menu-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .nav-list {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .nav-list a {
    display: block;
    padding: 1rem;
    border-radius: 10px;
  }

  .btn-play {
    width: 100%;
    text-align: center;
  }

  /* Hero adjustments */
  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  /* Sections */
  section {
    padding: 60px 0;
  }

  h2 {
    font-size: 2rem;
  }

  /* Leaderboard */
  .leaderboard-header,
  .leaderboard-row {
    grid-template-columns: 40px 1fr 80px 60px;
    gap: 0.5rem;
    font-size: 0.9rem;
  }

  /* Cookie banner */
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .cookie-buttons {
    justify-content: center;
  }

  /* Modal */
  .modal-content {
    padding: 2rem;
    margin: 20px;
  }

  /* Legal pages */
  .legal-page {
    padding: 2rem 1.5rem;
  }

  .legal-page h1 {
    font-size: 2rem;
  }

  .legal-page h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {
  /* Hero */
  .hero {
    padding: 90px 0 60px;
  }

  /* Legal pages */
  .legal-page {
    padding: 1.5rem 1rem;
  }

  .legal-page h1 {
    font-size: 1.6rem;
  }

  .legal-page h2 {
    font-size: 1.3rem;
  }

  .legal-page h3 {
    font-size: 1.1rem;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  /* Certificates */
  .certificates {
    grid-template-columns: 1fr;
  }

  /* Reviews */
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-info {
    grid-template-columns: 1fr;
  }

  /* Modal buttons */
  .modal-buttons {
    flex-direction: column;
  }

  /* Cookie buttons */
  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cookie-buttons .btn {
    width: 100%;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Scroll animations */
@media (prefers-reduced-motion: no-preference) {
  .animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
  }

  .animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Print styles */
@media print {
  .header,
  .footer,
  .cookie-banner,
  .modal,
  .menu-toggle-label {
    display: none !important;
  }

  body {
    color: black;
    background: white;
  }

  .container {
    max-width: none;
    padding: 0;
  }
}
