/* Modern Colombian Casino Website - Main Styles */
/* Color scheme inspired by Stripe's modern design */

/* CSS Custom Properties */
:root {
  --primary-bg: #ffffff;
  --secondary-bg: #f8fafc;
  --surface: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --border: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);

  /* Typography */
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-size-base: clamp(0.875rem, 0.1923vw, 1rem);
  --font-size-h1: clamp(2rem, 2.6923vw, 2.75rem);
  --font-size-h2: clamp(1.5rem, 0.0962vw, 1.75rem);
  --font-size-h3: clamp(1.25rem, 0.0962vw, 1.5rem);
  --line-height-heading: 1.2;
  --line-height-body: 1.5;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

  /* Borders */
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;

  /* 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);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
  color: var(--text-primary);
  background-color: var(--primary-bg);
  background-image: url("../img/site-background.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: var(--line-height-heading);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--font-size-h1);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: var(--font-size-h2);
  color: var(--text-primary);
}

h3 {
  font-size: var(--font-size-h3);
  color: var(--text-primary);
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

/* Layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.flex {
  display: flex;
  gap: var(--space-md);
}

/* Header */
.header {
  background: var(--primary-bg);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

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

.logo {
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  gap: var(--space-lg);
}

.nav a {
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
}

.nav a:hover {
  background: var(--secondary-bg);
  transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

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

/* Hero Section */
.hero {
  background: var(--gradient);
  color: white;
  padding: var(--space-2xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
}

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

.hero h1 {
  color: white;
  background: none;
  -webkit-text-fill-color: white;
  margin-bottom: var(--space-md);
}

.hero p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.hero-feature::before {
  content: "✓";
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Main Content */
.main {
  padding: var(--space-2xl) 0;
}

.content-overlay {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

/* Casino Cards */
.casinos-grid {
  display: grid;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.casino-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--border-radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}

.casino-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
  border-color: var(--accent);
}

.casino-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
  transform: translateY(-4px);
  transition: transform 0.3s ease;
}

.casino-card:hover::before {
  transform: translateY(0);
}

.casino-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.casino-logo {
  background: linear-gradient(135deg, #1e293b, #334155);
  padding: 12px 20px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.2);
}

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

.casino-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  color: #fbbf24;
  font-size: 1.25rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.rating-score {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.casino-bonus-highlight {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  padding: var(--space-lg);
  border-radius: var(--border-radius);
  text-align: center;
  margin-bottom: var(--space-lg);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.bonus-label {
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: var(--space-xs);
}

.bonus-amount {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.casino-features {
  margin-bottom: var(--space-lg);
}

.feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.feature:last-child {
  margin-bottom: 0;
}

.casino-footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.payment-methods {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background: var(--secondary-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
}

.payment-methods img {
  width: 36px;
  height: 24px;
  object-fit: contain;
  background: white;
  border-radius: 4px;
  padding: 2px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease;
}

.payment-methods img:hover {
  transform: scale(1.1);
}

.play-button {
  background: linear-gradient(135deg, #059669, #047857);
  color: white;
  border: none;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
  width: 100%;
  text-align: center;
}

.play-button:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
  background: linear-gradient(135deg, #047857, #065f46);
}

.play-button:active {
  transform: translateY(0);
}

.play-button:focus {
  outline: 2px solid #059669;
  outline-offset: 2px;
}

/* Content Sections */
.content-section {
  margin-bottom: var(--space-2xl);
}

.content-section h2 {
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  position: relative;
}

.content-section h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
}

.content-section p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: white;
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: var(--space-2xl);
}

.footer-content {
  display: grid;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section h3 {
  color: white;
  margin-bottom: var(--space-md);
  font-size: 1.125rem;
}

.footer-section p,
.footer-section ul {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

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

.footer-section ul li {
  margin-bottom: var(--space-sm);
}

.footer-section ul li::before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  margin-right: var(--space-sm);
}

.footer-logos {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

.footer-logo {
  height: 40px;
  width: auto;
  transition: transform 0.2s ease;
}

.footer-logo:hover {
  transform: scale(1.1);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--space-lg);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--border-radius);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: white;
}

/* Responsive Design */
@media (max-width: 599px) {
  :root {
    --font-size-h1: 2rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.25rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
  }

  body {
    background-attachment: scroll;
  }

  .container {
    padding: 0 var(--space-sm);
  }

  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

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

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .nav.active {
    transform: translateX(0);
  }

  .nav a {
    font-size: 1.125rem;
    font-weight: 600;
    padding: var(--space-md) var(--space-lg);
    text-align: center;
    width: 100%;
    max-width: 300px;
    border-radius: var(--border-radius);
    background: var(--secondary-bg);
    border: 1px solid var(--border);
  }

  .nav a:hover {
    background: var(--accent);
    color: white;
    transform: none;
  }

  .hero {
    padding: var(--space-xl) 0;
  }

  .hero-features {
    flex-direction: column;
    gap: var(--space-md);
  }

  .casino-card {
    padding: var(--space-lg);
    max-width: none;
    margin: 0;
  }

  .casino-header {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .casino-logo img {
    height: 35px;
  }

  .bonus-amount {
    font-size: 1.25rem;
  }

  .feature {
    font-size: 0.875rem;
  }

  .play-button {
    font-size: 0.875rem;
    padding: var(--space-sm) var(--space-md);
  }

  .payment-methods {
    padding: var(--space-sm);
  }

  .payment-methods img {
    width: 30px;
    height: 20px;
  }

  .footer-content {
    gap: var(--space-lg);
  }

  .footer-links {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .footer-logos {
    justify-content: center;
  }
}

@media (min-width: 600px) and (max-width: 959px) {
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

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

  .nav {
    position: static;
    width: auto;
    height: auto;
    background: none;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-lg);
    z-index: auto;
    transform: none;
    transition: none;
  }

  .nav a {
    font-size: 1rem;
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    text-align: left;
    width: auto;
    max-width: none;
    border-radius: var(--border-radius);
    background: none;
    border: none;
  }

  .nav a:hover {
    background: var(--secondary-bg);
    color: var(--accent-hover);
    transform: translateY(-1px);
  }

  .casinos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
  }

  .casino-card {
    max-width: 420px;
  }

  .casino-logo img {
    height: 38px;
  }

  .bonus-amount {
    font-size: 1.375rem;
  }

  .feature {
    font-size: 0.9375rem;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

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

  .nav {
    position: static;
    width: auto;
    height: auto;
    background: none;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-lg);
    z-index: auto;
    transform: none;
    transition: none;
  }

  .nav a {
    font-size: 1rem;
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    text-align: left;
    width: auto;
    max-width: none;
    border-radius: var(--border-radius);
    background: none;
    border: none;
  }

  .nav a:hover {
    background: var(--secondary-bg);
    color: var(--accent-hover);
    transform: translateY(-1px);
  }

  .casinos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
  }

  .casino-card {
    max-width: 420px;
  }

  .casino-logo img {
    height: 42px;
  }

  .bonus-amount {
    font-size: 1.5rem;
  }

  .feature {
    font-size: 0.9375rem;
  }

  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Lazy Loading */
img[data-src] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[data-src].loaded {
  opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Age Restriction Badge */
.age-restriction {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  background: var(--error);
  color: white;
  padding: var(--space-sm);
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
}

/* Additional styles for text pages */
.help-resources {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.help-card {
  background: var(--primary-bg);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.help-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.help-card h3 {
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.help-card p {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

.cookie-types {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.cookie-type {
  background: var(--primary-bg);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.cookie-type h3 {
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.cookie-type p {
  margin-bottom: 0;
  color: var(--text-secondary);
}

.policy-list,
.terms-list,
.browser-list,
.third-party-list {
  list-style: none;
  padding-left: 0;
}

.policy-list li,
.terms-list li,
.browser-list li,
.third-party-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

.policy-list li::before,
.terms-list li::before,
.browser-list li::before,
.third-party-list li::before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  margin-right: var(--space-sm);
  flex-shrink: 0;
}

.nav a.active {
  background: var(--accent);
  color: white;
  transform: none;
}

.nav a.active:hover {
  background: var(--accent-hover);
}

/* Responsive styles for text pages */
@media (min-width: 600px) {
  .help-resources {
    grid-template-columns: repeat(2, 1fr);
  }

  .cookie-types {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .help-resources {
    grid-template-columns: repeat(3, 1fr);
  }

  .cookie-types {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }

  .header,
  .footer {
    display: none;
  }

  .casino-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .help-card,
  .cookie-type {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
