/* TrackMaster Pro - Main Stylesheet */

:root {
  --primary-color: #1a237e;
  --secondary-color: #ffc107;
  --accent-color: #ff5722;
  --text-dark: #424242;
  --text-light: #757575;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --border-gray: #e0e0e0;
  --success-green: #4caf50;
  --warning-orange: #ff9800;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

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

/* Header */
.header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #283593 100%);
  color: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 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;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--white);
}

.logo-icon {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary-color);
}

.age-verification {
  background: var(--accent-color);
  padding: 8px 16px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 0.9rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Navigation */
.nav {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0;
  margin-top: 1rem;
}

.nav-container {
  position: relative;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  justify-content: center;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

/* Mobile Dropdown Navigation */
.mobile-nav-toggle {
  display: none;
  background: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  margin: 0 auto;
  position: relative;
}

.mobile-nav-toggle:hover {
  background: #e0a800;
}

.mobile-nav-toggle::after {
  content: "▼";
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.mobile-nav-toggle.active::after {
  transform: rotate(180deg);
}

.mobile-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  padding: 1rem;
  margin-top: 0.5rem;
  min-width: 200px;
  z-index: 1000;
}

.mobile-dropdown.show {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.mobile-dropdown a {
  display: block;
  color: var(--primary-color);
  text-decoration: none;
  padding: 0.75rem;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.mobile-dropdown a:hover {
  background: var(--light-gray);
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(26, 35, 126, 0.7), rgba(26, 35, 126, 0.7)),
    url("../images/horse-racing-hero.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(26, 35, 126, 0.6) 0%,
    rgba(26, 35, 126, 0.8) 100%
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 18px 40px;
  border-radius: 35px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.7);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Betting Sites Section */
.betting-sites {
  padding: 4rem 0;
  background: var(--light-gray);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 3rem;
  font-weight: bold;
}

.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.site-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: 2px solid transparent;
}

.site-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary-color);
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.site-logo {
  height: 60px;
  background: var(--light-gray);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.site-logo img {
  height: 45px;
}

.site-info h3 {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stars {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.bonus-info {
  background: linear-gradient(135deg, var(--success-green), #66bb6a);
  color: var(--white);
  padding: 1rem;
  border-radius: 10px;
  margin: 1rem 0;
  text-align: center;
  font-weight: bold;
}

.features {
  list-style: none;
  margin: 1rem 0;
}

.features li {
  padding: 0.3rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-green);
  font-weight: bold;
}

.bet-button {
  width: 100%;
  background: var(--accent-color);
  color: var(--white);
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
  display: block;
  text-align: center;
}

.bet-button:hover {
  background: #e64a19;
}

/* Features Section */
.features-section {
  padding: 4rem 0;
  background: var(--white);
}

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

.feature-card {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), #3f51b5);
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
}

.feature-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 3rem 0 1rem;
}

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

.footer-section h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  padding: 0.3rem 0;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.disclaimer {
  background: var(--warning-orange);
  color: var(--white);
  padding: 1rem;
  text-align: center;
  font-weight: bold;
  margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .hero {
    padding: 3rem 0;
    background-attachment: scroll;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.2rem;
    max-width: 90%;
  }

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

  .container {
    padding: 0 15px;
  }
}

@media (min-width: 769px) {
  .mobile-nav-toggle {
    display: none;
  }

  .mobile-dropdown {
    display: none !important;
  }
}
