/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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;
}

/* 18+ Sticky Warning */
.age-warning {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(45deg, #ff6b35, #ff8e53);
  color: white;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.age-warning-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.warning-icon {
  font-size: 1.2em;
  margin-right: 10px;
}

.warning-text {
  font-weight: 600;
  font-size: 14px;
}

.dismiss-btn {
  position: absolute;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0 5px;
  border-radius: 3px;
  transition: background-color 0.3s;
}

.dismiss-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 48px; /* This will be adjusted to 0 by JS when the warning is dismissed */
  z-index: 999;
  transition: top 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.logo h1 {
  color: #1e3c72;
  font-size: 1.8em;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: #1e3c72;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #1e3c72;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn:focus {
  outline: none;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hero Section */
.hero {
  padding: 80px 0;
  text-align: center;
  color: white;
  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="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5em;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.3em;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 12px 24px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 500;
}

/* Main Content */
.main {
  background: white;
  padding: 60px 0;
  position: relative;
}

.main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 100%
  );
}

/* Casino Cards */
.casinos-grid {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

.casino-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 30px;
  display: grid;
  grid-template-columns: auto 120px 1fr auto;
  gap: 25px;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.casino-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  transform: scaleY(0);
  transition: transform 0.3s;
}

.casino-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.casino-card:hover::before {
  transform: scaleY(1);
}

.casino-rank {
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #1e3c72, #2a5298);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2em;
  box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
}

.casino-logo img {
  max-width: 100px;
  max-height: 60px;
  object-fit: contain;
}

.casino-info {
  flex: 1;
}

.casino-name {
  font-size: 1.5em;
  font-weight: 600;
  color: #1e3c72;
  margin-bottom: 15px;
}

.casino-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature {
  color: #666;
  font-size: 0.9em;
  display: flex;
  align-items: center;
}

.feature::before {
  content: "✓"; /* FIX: Was a character encoding error */
  color: #4caf50;
  font-weight: bold;
  margin-right: 8px;
}

.visit-btn {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #1e3c72;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9em;
}

.visit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
  background: linear-gradient(45deg, #ffed4e, #ffd700);
}

/* Responsible Gaming Section */
.responsible-gaming {
  background: #f8f9fa;
  padding: 60px 0;
  text-align: center;
}

.responsible-gaming h2 {
  color: #1e3c72;
  font-size: 2.2em;
  margin-bottom: 40px;
  font-weight: 600;
}

.gaming-partners {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.partner-logo {
  max-width: 200px;
  object-fit: contain;
  transition: transform 0.3s;
  filter: grayscale(50%);
  opacity: 0.8;
}

.partner-logo:hover {
  transform: scale(1.05);
  filter: grayscale(0%);
  opacity: 1;
}

.age-badge {
  background: linear-gradient(45deg, #ff6b35, #ff8e53);
  color: white;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: white;
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: #ffd700;
  margin-bottom: 20px;
  font-size: 1.4em;
}

.footer-section h4 {
  color: #ffd700;
  margin-bottom: 15px;
  font-size: 1.1em;
}

.footer-section p {
  color: #ccc;
  line-height: 1.8;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #ffd700;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  color: #999;
  font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5em;
  }

  .hero-subtitle {
    font-size: 1.1em;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    min-width: 200px;
    padding: 10px 0;
    z-index: 100;
  }

  .nav-links.active {
    display: block;
  }

  .nav-links a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links a:hover {
    background: #f8f9fa;
    color: #1e3c72;
  }

  .nav-links a::after {
    display: none;
  }

  .casino-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  
  .casino-logo {
    margin: 0 auto;
  }

  .casino-rank {
    margin: 0 auto;
  }

  .gaming-partners {
    gap: 30px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .hero-badges {
    flex-direction: column;
    align-items: center;
  }

  .age-warning-content {
    padding: 10px 15px;
  }

  .warning-text {
    font-size: 12px;
  }

  .dismiss-btn {
    right: 15px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .casino-card {
    padding: 20px;
  }

  .nav-container {
    padding: 10px 15px;
  }

  .logo h1 {
    font-size: 1.5em;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 2em;
  }

  .visit-btn {
    padding: 12px 24px;
    font-size: 0.8em;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth scrolling for policy links */
html {
  scroll-padding-top: 100px;
}
