/* Racing Royale - Horse Betting Hub Styles */
:root {
  --primary-purple: #6b2c91;
  --secondary-purple: #9d4edd;
  --accent-gold: #ffd700;
  --dark-gold: #b8860b;
  --light-purple: #e6d5f0;
  --background: #fafafa;
  --text-dark: #2c1810;
  --text-light: #ffffff;
  --gray-light: #f5f5f5;
  --gray-medium: #cccccc;
  --success-green: #28a745;
  --warning-orange: #fd7e14;
}

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

body {
  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background);
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-purple);
  color: var(--text-light);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  font-weight: bold;
}

.skip-link:focus {
  top: 6px;
}

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

/* Header */
.header {
  background: linear-gradient(
    135deg,
    var(--primary-purple) 0%,
    var(--secondary-purple) 100%
  );
  color: var(--text-light);
  padding: 1rem 0;
  position: relative;
  box-shadow: 0 2px 10px rgba(107, 44, 145, 0.3);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent-gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo::before {
  content: "🏇";
  font-size: 2.5rem;
}

.age-notice {
  background: var(--warning-orange);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
}

/* Navigation */
.nav {
  background: var(--dark-gold);
  padding: 0.5rem 0;
  position: relative;
}

.nav .container {
  position: relative;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-light);
  margin: 4px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(-45deg) translate(-6px, 6px);
}

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

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background 0.3s ease;
  font-weight: 500;
  display: block;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(107, 44, 145, 0.85) 0%,
    rgba(157, 78, 221, 0.75) 50%,
    rgba(255, 215, 0, 0.3) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--text-light);
  padding: 4rem 0;
}

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

.hero p {
  font-size: 1.3rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  line-height: 1.6;
}

.cta-button {
  background: linear-gradient(
    45deg,
    var(--primary-purple),
    var(--secondary-purple)
  );
  color: var(--text-light);
  padding: 1rem 2rem;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(107, 44, 145, 0.6);
}

.hero .cta-button {
  background: linear-gradient(45deg, var(--accent-gold), var(--dark-gold));
  color: var(--text-dark);
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero .cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.5);
}

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

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

.section-title::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: var(--accent-gold);
  margin: 1rem auto;
  border-radius: 2px;
}

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

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

.site-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(107, 44, 145, 0.2);
  border-color: var(--secondary-purple);
}

.site-logo {
  height: 60px;
  background: var(--gray-light);
  padding: 8px;
  border-radius: 10px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--primary-purple);
  font-size: 1.1rem;
}

.site-rating {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.rating-score {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-purple);
}

.rating-stars {
  color: var(--accent-gold);
  font-size: 1.2rem;
}

.site-bonus {
  background: var(--success-green);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  margin-bottom: 1rem;
  display: inline-block;
}

.site-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.site-features li {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.site-features li::before {
  content: "✓";
  color: var(--success-green);
  font-weight: bold;
  margin-right: 0.5rem;
}

.claim-btn {
  background: linear-gradient(45deg, var(--accent-gold), var(--dark-gold));
  color: var(--text-dark);
  padding: 1rem 2rem;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s ease;
  width: 100%;
  text-align: center;
}

.claim-btn:hover {
  transform: scale(1.05);
}

/* Info Sections */
.info-section {
  padding: 4rem 0;
  background: var(--gray-light);
}

.info-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.info-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
  color: var(--primary-purple);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.info-card ul {
  list-style: none;
}

.info-card li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.info-card li::before {
  content: "🏆";
  position: absolute;
  left: 0;
}

/* Footer */
.footer {
  background: var(--primary-purple);
  color: var(--text-light);
  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(--accent-gold);
  margin-bottom: 1rem;
}

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

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

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

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

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav {
    padding: 1rem 0;
  }

  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

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

  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-gold);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
  }

  .nav-list.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .nav-link {
    padding: 1rem;
    width: 100%;
    border-radius: 0;
    transition: background 0.3s ease;
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
  }

  .hero {
    min-height: 60vh;
  }

  .hero-content {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: 1.1rem;
    margin: 0 auto 2rem;
  }

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

  .info-content {
    grid-template-columns: 1fr;
  }

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

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

  .logo {
    font-size: 1.5rem;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero {
    min-height: 50vh;
  }

  .hero-content {
    padding: 2rem 0;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .hero p {
    font-size: 1rem;
    margin: 0 auto 1.5rem;
  }

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

  .site-card {
    padding: 1.5rem;
  }
}

/* Comparison Table */
.comparison-section {
  padding: 4rem 0;
  background: var(--background);
}

.table-container {
  overflow-x: auto;
  margin-bottom: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.comparison-table {
  width: 100%;
  background: white;
  border-collapse: collapse;
  border-radius: 15px;
  overflow: hidden;
  min-width: 800px;
}

.comparison-table th {
  background: linear-gradient(
    135deg,
    var(--primary-purple),
    var(--secondary-purple)
  );
  color: var(--text-light);
  padding: 1rem;
  text-align: left;
  font-weight: bold;
  font-size: 0.9rem;
}

.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-medium);
  vertical-align: top;
}

.comparison-table tr:hover {
  background: var(--light-purple);
}

.comparison-table td strong {
  display: block;
  color: var(--primary-purple);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.comparison-table td small {
  color: var(--text-dark);
  font-size: 0.8rem;
  opacity: 0.7;
}

.rating-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
  display: inline-block;
}

.rating-badge.excellent {
  background: var(--success-green);
  color: white;
}

.rating-badge.good {
  background: var(--warning-orange);
  color: white;
}

.bonus-highlight {
  background: linear-gradient(45deg, var(--accent-gold), var(--dark-gold));
  color: var(--text-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-weight: bold;
  font-size: 0.9rem;
  display: inline-block;
}

.feature-yes {
  color: var(--success-green);
  font-weight: bold;
}

.feature-limited {
  color: var(--warning-orange);
  font-weight: bold;
}

.comparison-notes {
  background: var(--light-purple);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.comparison-notes strong {
  color: var(--primary-purple);
}

/* Mobile responsive table */
@media (max-width: 768px) {
  .table-container {
    border-radius: 0;
    margin: 0 -20px 2rem;
  }

  .comparison-table {
    border-radius: 0;
    min-width: auto;
  }

  .comparison-table thead {
    display: none;
  }

  .comparison-table,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table td {
    display: block;
  }

  .comparison-table tr {
    border: 2px solid var(--secondary-purple);
    /* margin-bottom: 1rem; */
    border-radius: 10px;
    padding: 0;
    background: white;
    margin: 0 1rem 1rem 1rem;
  }

  .comparison-table td {
    border: none;
    border-bottom: 1px solid var(--gray-light);
    position: relative;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .comparison-table td:last-child {
    border-bottom: none;
  }

  .comparison-table td:before {
    content: attr(data-label) ": ";
    font-weight: bold;
    color: var(--primary-purple);
    margin-right: 0.5rem;
    flex-shrink: 0;
  }

  .comparison-table td[data-label="Operator"]:before {
    display: none;
  }

  .comparison-table td[data-label="Operator"] {
    background: var(--light-purple);
    font-size: 1.1rem;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding: 1rem;
  }

  .comparison-table td[data-label="Operator"] strong {
    margin-bottom: 0.25rem;
  }
}

/* Page-specific styles */
.page-header {
  background: var(--primary-purple);
  color: var(--text-light);
  padding: 2rem 0;
  text-align: center;
}

.page-content {
  padding: 3rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.page-content h2 {
  color: var(--primary-purple);
  margin: 2rem 0 1rem;
}

.page-content h3 {
  color: var(--secondary-purple);
  margin: 1.5rem 0 0.5rem;
}

.page-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.page-content ul {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}
