/* 
   Betfair Casino Chile - Modern Premium Design 
   Vanilla CSS | Mobile-first 
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Colors - Betfair Palette */
  --bf-yellow: #FFB80C;
  --bf-yellow-hover: #F2AE0B;
  --bf-dark: #121A20;
  --bf-darker: #0B1014;
  --bf-gray: #1E2831;
  --bf-light-gray: #E2E8F0;
  --bf-white: #FFFFFF;
  --bf-blue: #0076FF;
  --bf-success: #00E75A;
  
  /* Gradients */
  --grad-premium: linear-gradient(135deg, #FFB80C 0%, #D99500 100%);
  --grad-dark: linear-gradient(180deg, #121A20 0%, #0B1014 100%);
  --grad-glass: rgba(30, 40, 49, 0.7);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(255, 184, 12, 0.2);
  --shadow-glow-hover: 0 0 30px rgba(255, 184, 12, 0.4);

  /* Constants */
  --content-max-width: 1200px;
  --border-radius: 12px;
  --border-radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--bf-white);
  background-color: var(--bf-darker);
  background-image: radial-gradient(circle at 50% top, var(--bf-gray) 0%, var(--bf-darker) 60%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  background: linear-gradient(to right, #FFF, #FFB80C);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1.25rem;
  color: var(--bf-light-gray);
  font-size: 1.05rem;
}

a {
  color: var(--bf-yellow);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--bf-yellow-hover);
}

.text-highlight {
  color: var(--bf-yellow);
}

/* Layout */
.container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(11, 16, 20, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--bf-white);
  text-transform: uppercase;
  letter-spacing: -1px;
}

.logo span {
  color: var(--bf-yellow);
}

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

.nav-links a {
  color: var(--bf-white);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  font-family: var(--font-heading);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--bf-yellow);
  transition: width 0.3s ease;
}

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

.nav-actions {
  display: flex;
  gap: 1rem;
}

/* Component: Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--bf-yellow);
  color: var(--bf-darker);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: var(--bf-yellow-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-hover);
  color: var(--bf-darker);
}

.btn-secondary {
  background: transparent;
  color: var(--bf-white);
  border: 1px solid var(--bf-gray);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--bf-yellow);
}

/* Hero Section */
.hero {
  padding: 10rem 0 6rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(255, 184, 12, 0.08) 0%, rgba(11, 16, 20, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-subtitle {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 184, 12, 0.1);
  border: 1px solid rgba(255, 184, 12, 0.2);
  color: var(--bf-yellow);
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 4rem;
}

.stat-item {
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--bf-white);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.stat-label {
  color: var(--bf-light-gray);
  font-size: 0.9rem;
}

/* Grids & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bf-gray);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 184, 12, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Feature/SEO list */
.feature-list {
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--bf-light-gray);
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--bf-yellow);
  font-weight: bold;
}

/* Data Tables */
.data-table-wrapper {
  overflow-x: auto;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

/* Slots Game Grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.game-card {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--bf-gray);
  display: block;
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

.game-card:hover img {
  transform: scale(1.1);
}

.game-card .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: all 0.3s ease;
  background: var(--bf-yellow);
  color: var(--bf-darker);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 2;
  box-shadow: 0 0 15px rgba(255, 184, 12, 0.5);
}

.game-card .play-btn::after {
  content: '▶';
  margin-left: 3px;
}

.game-card:hover .play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.game-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.game-card:hover::after {
  opacity: 0.4;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th, .data-table td {
  padding: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table th {
  background: rgba(0, 0, 0, 0.2);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--bf-white);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

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

/* FAQ Section */
.faq-item {
  background: var(--bf-gray);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-q {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bf-yellow);
  margin-bottom: 0.5rem;
}

.faq-a {
  color: var(--bf-light-gray);
}

/* Badges */
.badge {
  background: rgba(255, 184, 12, 0.1);
  color: var(--bf-yellow);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  border: 1px solid rgba(255, 184, 12, 0.2);
}

/* Footer */
footer {
  background: #080B0E;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--bf-white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

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

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

.footer-col ul li a {
  color: var(--bf-light-gray);
  font-size: 0.95rem;
}

.footer-col ul li a:hover {
  color: var(--bf-yellow);
}

.footer-legal {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.trust-logos {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.trust-logo {
  height: 40px;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.trust-logo:hover {
  opacity: 1;
}

/* Responsive */
.burger-menu {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--bf-white);
  font-size: 1.8rem;
  margin-left: 1rem;
}

/* Utility Classes */
.d-mobile-only {
  display: none;
}

@media (max-width: 992px) {
  .hero-stats {
    flex-wrap: wrap;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .burger-menu {
    display: block;
    z-index: 101;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: rgba(11, 16, 20, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding-top: 80px;
    padding-left: 2rem;
    transition: right 0.3s ease;
    border-left: 1px solid rgba(255,184,12,0.2);
    z-index: 100;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    margin-bottom: 2rem;
  }
  
  .nav-actions .btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  .hero {
    padding: 8rem 0 4rem;
  }
  
  .d-mobile-only {
    display: flex !important;
  }
  
  .sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--grad-premium);
    color: var(--bf-darker);
    padding: 1rem;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    z-index: 999;
    box-shadow: 0 -5px 15px rgba(255, 184, 12, 0.3);
    text-transform: uppercase;
    text-decoration: none;
  }
  
  /* Add padding to body so sticky CTA doesn't cover footer text */
  body {
    padding-bottom: 60px;
  }
}
