/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #2e1a2d 0%, #3c163e 50%, #600f5f 100%);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Age Restriction Banner */
.age-restriction-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(45deg, #29dc26, #47ef44);
  color: white;
  z-index: 1000;
  padding: 8px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.banner-content {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.age-text {
  font-weight: bold;
  font-size: 14px;
  text-align: center;
}

.banner-close {
  position: absolute;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-close:hover {
  background: rgba(255, 255, 255, 0.392);
  border-radius: 50%;
}

/* Header */
.header {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  z-index: 900;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo h1 {
  color: #00c8ff;
  font-size: 1.8rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.logo-tagline {
  color: #e2e8f0;
  font-size: 0.9rem;
  display: block;
  margin-top: -5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #00c8ff;
  background: rgba(255, 215, 0, 0.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 0.25rem;
  z-index: 1001;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: #e2e8f0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background: #00c8ff;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background: #00c8ff;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #123419 0%, #30a347 50%, #1c8735 100%);
  color: white;
  padding: 180px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #00c8ff, #ffed4e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.5;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.feature-icon {
  font-size: 1.2rem;
}

/* Casino Section */
.casino-section {
  padding: 100px 0;
  background: rgba(255, 255, 255, 0.95);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #238a1e;
  margin-bottom: 1rem;
  font-weight: bold;
}

.section-header p {
  font-size: 1.1rem;
  color: #64748b;
}

.casino-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Дві колонки однакової ширини */
    gap: 2rem; /* Відступ між елементами */
    max-width: 900px;
    margin: 0 auto; /* Центрування контейнера */
}
@media (max-width: 768px) {
    .casino-grid {
        grid-template-columns: 1fr; /* На малих екранах - одна колонка */
    }
}
.casino-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.casino-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(45deg, #00c8ff, #ffed4e);
}

.casino-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: #00c8ff;
}

.casino-rank {
  background: linear-gradient(45deg, #238a1e, #60a330);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.casino-logo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px;
}

.casino-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.casino-info {
  flex: 1;
}

.casino-name {
  font-size: 1.5rem;
  color: #238a1e;
  margin-bottom: 1rem;
  font-weight: bold;
}

.casino-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.casino-features li {
  color: #64748b;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.casino-features li::before {
  content: "✓";
  color: #22c55e;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.casino-btn {
  background: linear-gradient(45deg, #238a1e, #60a330);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.casino-btn:hover {
  background: linear-gradient(45deg, #60a330, #581c87);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

/* Responsible Gaming Section */
.responsible-section {
  background: #238a1e;
  color: white;
  padding: 80px 0;
  text-align: center;
}

.responsible-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #00c8ff;
}

.responsible-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.responsible-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.responsible-link {
  background: white;
  padding: 0.5rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  display: block;
}

.responsible-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.responsible-link img {
  width: 100px;
}

/* Footer */
.footer {
  background: #132a0f;
  color: #e2e8f0;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-info h3 {
  color: #00c8ff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-info p {
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.footer-info a {
  color: #00c8ff;
  text-decoration: none;
}

.footer-info a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #00c8ff;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.commission-logo {
  height: 40px;
  width: auto;
  opacity: 0.8;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .age-restriction-banner {
    padding: 10px 0;
  }

  .banner-content {
    padding: 0 15px;
  }

  .age-text {
    font-size: 12px;
  }

  .banner-close {
    right: 15px;
    font-size: 18px;
  }

  .nav-container {
    justify-content: space-between;
    padding: 1rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
  }

  .nav-links.mobile-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 1rem 2rem;
    font-size: 1rem;
    width: 100%;
    border-radius: 0;
    background: none;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(255, 215, 0, 0.2);
    color: #00c8ff;
  }

  .hero {
    padding: 150px 0 80px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-features {
    gap: 1rem;
  }

  .feature-item {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .casino-section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .casino-card {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .casino-rank {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .casino-logo {
    width: 60px;
    height: 60px;
  }

  .casino-name {
    font-size: 1.3rem;
  }

  .responsible-section {
    padding: 60px 0;
  }

  .responsible-section h2 {
    font-size: 2rem;
  }

  .responsible-links {
    gap: 2rem;
  }

  .responsible-link img {
    width: 100px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-links {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .feature-item {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .casino-card {
    padding: 1rem;
  }

  .casino-name {
    font-size: 1.2rem;
  }

  .casino-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.casino-card {
  animation: fadeInUp 0.6s ease-out;
}

.casino-card:nth-child(even) {
  animation-delay: 0.1s;
}

.casino-card:nth-child(odd) {
  animation-delay: 0.2s;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus,
a:focus {
  outline: 2px solid #00c8ff;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .age-restriction-banner,
  .header,
  .footer {
    display: none;
  }

  .casino-card {
    break-inside: avoid;
  }
}


/* AGE VERIFICATION POPUP */
        /* ==================== */
        .age-gate-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.85);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            color: #333;
            text-align: center;
            padding: 20px;
        }

        .age-gate-container {
            background: linear-gradient(135deg, #a8e063, #56ab2f);
            padding: 40px;
            border-radius: 15px;
            max-width: 600px;
            box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
            color: #fff;
        }

        .age-gate-title {
            font-size: 2.2rem;
            margin-bottom: 20px;
            color: #fff;
            text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
        }

        .age-gate-text {
            font-size: 1.2rem;
            line-height: 1.6;
            margin-bottom: 30px;
        }

        .age-gate-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 30px;
            flex-wrap: wrap;
        }

        .age-gate-btn {
            padding: 12px 35px;
            border: none;
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            min-width: 200px;
        }

        #confirm-age-gate {
            background-color: #fff;
            color: #56ab2f;
        }

        #confirm-age-gate:hover {
            background-color: #f0f0f0;
            transform: scale(1.05);
        }

        #deny-age-gate {
            background-color: transparent;
            color: #fff;
            border: 2px solid #fff;
        }

        #deny-age-gate:hover {
            background-color: rgba(255,255,255,0.1);
            transform: scale(1.05);
        }

        .age-gate-warning {
            margin-top: 30px;
            font-size: 0.9rem;
            color: #fff;
            font-weight: bold;
            opacity: 0.8;
        }

        /* ==================== */
        /* COOKIE CONSENT POPUP */
        /* ==================== */
        .cookies-banner {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(135deg, #a8e063, #56ab2f);
            color: #fff;
            padding: 1.5rem;
            display: none;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
            z-index: 9998;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
            flex-wrap: wrap;
        }

        .cookies-text {
            flex: 1;
            min-width: 250px;
            font-size: 0.95rem;
            line-height: 1.5;
        }

        .cookies-buttons {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .cookies-btn {
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }

        .accept-btn {
            background-color: #fff;
            color: #56ab2f;
        }

        .accept-btn:hover {
            background-color: #f0f0f0;
            transform: translateY(-2px);
        }

        .settings-btn {
            background-color: transparent;
            color: #fff;
            border: 2px solid #fff;
        }

        .settings-btn:hover {
            background-color: rgba(255,255,255,0.1);
        }

        .reject-btn {
            background-color: transparent;
            color: #fff;
            border: 2px solid #fff;
        }

        .reject-btn:hover {
            background-color: rgba(255,255,255,0.1);
        }

        @media (max-width: 768px) {
            .age-gate-container {
                padding: 20px;
            }
            
            .age-gate-title {
                font-size: 1.8rem;
            }
            
            .age-gate-buttons {
                flex-direction: column;
            }
            
            .age-gate-btn {
                width: 100%;
            }
            
            .cookies-banner {
                flex-direction: column;
                text-align: center;
            }
            
            .cookies-buttons {
                width: 100%;
                justify-content: center;
            }
        }