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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Age Verification Banner */
.age-banner {
  background: linear-gradient(135deg, #d32f2f, #f44336);
  color: white;
  padding: 12px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.age-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-align: center;
}

.age-icon {
  font-size: 20px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.age-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0 10px;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.age-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Header */
.header {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 54px;
  left: 0;
  right: 0;
  z-index: 999;
  transition: all 0.3s ease;
}

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

.nav-brand .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #1565c0;
  font-weight: bold;
  font-size: 24px;
}

.logo-icon {
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

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

.nav-menu a:hover {
  color: #1565c0;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #1565c0;
  transition: width 0.3s;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  transition: all 0.3s;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #1565c0, #1976d2);
  color: white;
  box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 101, 192, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #1565c0;
  border: 2px solid #1565c0;
}

.btn-secondary:hover {
  background: #1565c0;
  color: white;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(21, 101, 192, 0.6), rgba(25, 118, 210, 0.7)),
    url("./horse-racing.jpg") center center/cover no-repeat;
  padding: 150px 0 80px;
  margin-top: 124px;
  overflow: hidden;
  position: relative;
  min-height: 500px;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text p {
  font-size: 1.2rem;
  color: white;
  margin-bottom: 30px;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-cta {
  display: flex;
  gap: 20px;
}

/* Racing Animation */
.racing-graphic {
  position: relative;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.track-stats {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.2);
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  flex: 1;
  backdrop-filter: blur(5px);
}

.stat-icon {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.stat-text {
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.track {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  height: 40px;
  background: repeating-linear-gradient(
    90deg,
    rgba(139, 69, 19, 0.8) 0px,
    rgba(139, 69, 19, 0.8) 10px,
    rgba(160, 82, 45, 0.8) 10px,
    rgba(160, 82, 45, 0.8) 20px
  );
  border-radius: 20px;
}

.horse {
  position: absolute;
  font-size: 24px;
  animation: racing 3s infinite linear;
  bottom: 65px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.horse-1 {
  animation-delay: 0s;
}
.horse-2 {
  animation-delay: 0.5s;
}
.horse-3 {
  animation-delay: 1s;
}

@keyframes racing {
  0% {
    left: -50px;
  }
  100% {
    left: calc(100% + 50px);
  }
}

/* Featured Sites */
.featured-sites {
  padding: 80px 0;
  background: white;
}

.featured-sites h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #1565c0;
  margin-bottom: 50px;
}

.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.site-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 2px solid transparent;
}

.site-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.site-card.featured {
  border-color: #ff9800;
  position: relative;
}

.featured-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  gap: 15px;
}

.site-logo {
  width: 150px;
  height: 45px;
  border-radius: 8px;
}

.site-info h3 {
  color: #1565c0;
  margin-bottom: 5px;
  font-size: 1.3rem;
}

.rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stars {
  color: #ffc107;
  font-size: 14px;
}

.score {
  background: #e8f5e8;
  color: #2e7d32;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.site-features ul {
  list-style: none;
  margin-bottom: 25px;
}

.site-features li {
  padding: 8px 0;
  color: #666;
  border-bottom: 1px solid #f0f0f0;
}

.site-features li:last-child {
  border-bottom: none;
}

/* Why Choose Section */
.why-choose {
  padding: 80px 0;
  background: #f8f9fa;
}

.why-choose h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #1565c0;
  margin-bottom: 50px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.feature {
  text-align: center;
  padding: 30px 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.feature h3 {
  color: #1565c0;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.feature p {
  color: #666;
  line-height: 1.6;
}

/* Betting Guide */
.betting-guide {
  padding: 80px 0;
  background: white;
}

.guide-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: center;
}

.guide-text h2 {
  font-size: 2.5rem;
  color: #1565c0;
  margin-bottom: 30px;
}

.guide-tips {
  margin-bottom: 30px;
}

.tip {
  margin-bottom: 25px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid #1565c0;
}

.tip h4 {
  color: #1565c0;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.tip p {
  color: #666;
  line-height: 1.6;
}

.betting-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.stat {
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, #1565c0, #1976d2);
  color: white;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(21, 101, 192, 0.3);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Responsible Gaming */
.responsible-gaming {
  padding: 60px 0;
  background: linear-gradient(135deg, #fff3e0, #fce4ec);
  border-top: 3px solid #ff9800;
  border-bottom: 3px solid #ff9800;
}

.responsible-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.responsible-content h3 {
  color: #d84315;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.responsible-content p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 25px;
  line-height: 1.6;
}

.responsible-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.responsible-links a {
  color: #d84315;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border: 2px solid #d84315;
  border-radius: 8px;
  transition: all 0.3s;
}

.responsible-links a:hover {
  background: #d84315;
  color: white;
}

/* Footer */
.footer {
  background: #263238;
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: #1976d2;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

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

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

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

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #1976d2;
}

.age-reminder {
  background: #d32f2f;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: bold;
  display: inline-block;
  margin-top: 15px;
}

.footer-bottom {
  border-top: 1px solid #37474f;
  padding-top: 30px;
  text-align: center;
  color: #90a4ae;
}

.footer-bottom p {
  margin-bottom: 10px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .age-content {
    padding: 0 15px;
    font-size: 14px;
  }

  .age-content span:nth-child(2) {
    flex: 1;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 124px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 124px);
    background: white;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 50px;
    transition: left 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin-bottom: 20px;
  }

  .hero {
    padding: 120px 0 60px;
  }

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

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-cta {
    justify-content: center;
    flex-wrap: wrap;
  }

  .racing-graphic {
    height: 200px;
  }

  .sites-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .guide-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .guide-text h2 {
    font-size: 2rem;
  }

  .responsible-links {
    flex-direction: column;
    align-items: center;
  }

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

  .container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .site-card {
    padding: 20px;
  }

  .feature {
    padding: 20px 15px;
  }

  .tip {
    padding: 15px;
  }

  .stat {
    padding: 20px;
  }

  .stat-number {
    font-size: 2rem;
  }
}
