/* Complete redesign with vibrant modern theme for horse racing betting */

/* ===== CSS Variables ===== */
:root {
  /* Primary Colors - Vibrant Purple & Teal */
  --color-primary: #7c3aed;
  --color-primary-dark: #6d28d9;
  --color-primary-light: #a78bfa;
  --color-secondary: #14b8a6;
  --color-secondary-dark: #0d9488;
  --color-secondary-light: #5eead4;

  /* Accent Colors */
  --color-accent: #f59e0b;
  --color-accent-light: #fbbf24;

  /* Neutral Colors */
  --color-white: #ffffff;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;

  /* Semantic Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}

/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--color-gray-50);
  color: var(--color-gray-900);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== Header ===== */
.main-header {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--color-gray-100);
}

.navbar {
  padding: 1rem 0;
}

.brand-logo {
  height: 45px;
  width: auto;
}

.nav-link {
  color: var(--color-gray-700);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 1rem !important;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--color-primary);
  transition: transform var(--transition-base);
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.btn-header-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-lg);
  border: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.btn-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--color-white);
}

/* ===== Hero Section ===== */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../images/bg-image.png");
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: var(--color-white);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: var(--color-white);
  color: var(--color-primary);
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-xl);
  border: none;
  font-size: 1.0625rem;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xl);
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 35px -5px rgba(0, 0, 0, 0.2);
  color: var(--color-primary-dark);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: var(--color-white);
  font-weight: 600;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-xl);
  border: 2px solid rgba(255, 255, 255, 0.4);
  font-size: 1.0625rem;
  transition: all var(--transition-base);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-3px);
  color: var(--color-white);
}

/* ===== Platforms Section ===== */
.platforms-section {
  padding: 80px 0;
  background: var(--color-gray-50);
}

.section-header {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-gray-900);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-gray-600);
}

/* Platform Cards */
.platform-card {
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.platform-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-light);
}

.featured-platform {
  border-color: var(--color-accent);
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.2);
}

.featured-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  color: var(--color-white);
  padding: 0.5rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-bottom-left-radius: var(--radius-lg);
  display: flex;
  align-items: center;
}

.platform-rank-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.platform-rank {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  box-shadow: var(--shadow-md);
}

.platform-logo-wrapper {
  width: 100%;
  max-width: 120px;
  padding: 0.75rem;
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
}

.platform-logo {
  width: 100%;
  height: auto;
  display: block;
}

.platform-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 0.75rem;
}

.platform-bonus {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(109, 40, 217, 0.1) 100%);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  border: 1px solid var(--color-primary-light);
}

.bonus-text {
  font-size: 0.9375rem;
  color: var(--color-gray-700);
}

.bonus-text strong {
  color: var(--color-primary);
  font-weight: 700;
}

.platform-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--color-gray-100);
  color: var(--color-gray-700);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 500;
}

.feature-badge i {
  color: var(--color-secondary);
  font-size: 0.875rem;
}

.platform-rating-box {
  text-align: center;
}

.overall-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.score-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.score-label {
  font-size: 1.125rem;
  color: var(--color-gray-500);
  font-weight: 600;
}

.star-rating {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.star-rating i {
  color: var(--color-accent);
  font-size: 1.125rem;
}

.review-count {
  font-size: 0.875rem;
  color: var(--color-gray-500);
  margin: 0;
}

.platform-actions {
  display: flex;
  flex-direction: column;
}

.btn-platform-primary {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  color: var(--color-white);
  font-weight: 700;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-lg);
  border: none;
  transition: all var(--transition-base);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.btn-platform-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--color-white);
}

.btn-platform-secondary {
  background: var(--color-white);
  color: var(--color-gray-700);
  font-weight: 600;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-gray-300);
  transition: all var(--transition-base);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-platform-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-gray-50);
}

.btn-view-all {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  font-weight: 700;
  padding: 1rem 3rem;
  border-radius: var(--radius-xl);
  border: none;
  font-size: 1.0625rem;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-view-all:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  color: var(--color-white);
}

/* ===== Why Choose Section ===== */
.why-choose-section {
  padding: 80px 0;
  background: var(--color-white);
}

.feature-card {
  background: var(--color-gray-50);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
  transition: all var(--transition-base);
  border: 2px solid transparent;
  height: 100%;
}

.feature-card:hover {
  background: var(--color-white);
  border-color: var(--color-primary-light);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-md);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 0.75rem;
}

.feature-text {
  font-size: 0.9375rem;
  color: var(--color-gray-600);
  line-height: 1.7;
  margin: 0;
}

/* ===== How We Rank Section ===== */
.how-we-rank-section {
  padding: 80px 0;
  background: var(--color-gray-50);
}

.ranking-card {
  background: var(--color-white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
  transition: all var(--transition-base);
  border: 2px solid var(--color-gray-200);
  position: relative;
  height: 100%;
}

.ranking-card:hover {
  border-color: var(--color-secondary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.ranking-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
}

.ranking-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(13, 148, 136, 0.1) 100%);
  color: var(--color-secondary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 1.5rem auto 1.5rem;
}

.ranking-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 0.75rem;
}

.ranking-text {
  font-size: 0.9375rem;
  color: var(--color-gray-600);
  line-height: 1.7;
  margin: 0;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../images/bg-image.png");
  background-size: cover;
  background-position: center;
  opacity: 0.1;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.btn-cta-primary {
  background: var(--color-white);
  color: var(--color-primary);
  font-weight: 700;
  padding: 1rem 3rem;
  border-radius: var(--radius-xl);
  border: none;
  font-size: 1.125rem;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xl);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 35px -5px rgba(0, 0, 0, 0.3);
  color: var(--color-primary-dark);
}

/* ===== Footer ===== */
.main-footer {
  background: var(--color-gray-900);
  color: var(--color-gray-300);
  padding: 60px 0 30px;
}

.footer-logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-description {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-gray-400);
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--color-gray-400);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

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

.responsible-gaming-logos {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.rg-logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.footer-certifications {
  padding: 2rem 0;
  border-top: 1px solid var(--color-gray-800);
  border-bottom: 1px solid var(--color-gray-800);
}

.cert-logo {
  height: 35px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.6;
}

.footer-bottom {
  padding-top: 2rem;
}

.footer-disclaimer {
  font-size: 0.8125rem;
  color: var(--color-gray-500);
  line-height: 1.6;
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--color-gray-500);
}

/* ===== Legal Pages ===== */
.legal-content-section {
  padding: 80px 0;
  background: var(--color-gray-50);
  min-height: calc(100vh - 200px);
}

.legal-content-card {
  background: var(--color-white);
  padding: 3rem;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

.legal-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-gray-900);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--color-primary);
}

.legal-text {
  font-size: 1rem;
  color: var(--color-gray-700);
  line-height: 1.8;
}

.legal-text p {
  margin-bottom: 1.5rem;
}

.legal-text .lead {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-gray-800);
}

.legal-text h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-text h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-text ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-text ul li {
  margin-bottom: 0.5rem;
}

.legal-text a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.legal-text a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.legal-text .alert {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(109, 40, 217, 0.1) 100%);
  border: 2px solid var(--color-primary-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.legal-text .alert-heading {
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

  .hero-description {
    font-size: 1.125rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .platform-name {
    font-size: 1.5rem;
  }

  .cta-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .platform-card {
    padding: 1.5rem;
  }

  .platform-name {
    font-size: 1.25rem;
  }

  .score-value {
    font-size: 2.5rem;
  }

  .legal-content-card {
    padding: 2rem 1.5rem;
  }

  .legal-title {
    font-size: 2rem;
  }

  .cta-title {
    font-size: 1.875rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}
