/* Modern Colombian Casino Website - Bright Cyan Theme */
/* Following .cursorrules guidelines for responsive design and typography */

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

/* CSS Custom Properties - Bright Cyan Color Scheme */
:root {
  /* Background Colors */
  --primary-bg: #ffffff;
  --secondary-bg: #fafbfc;
  --surface: #f7f9fb;

  /* Text Colors */
  --text-primary: #2d3748;
  --text-secondary: #718096;

  /* Accent Colors */
  --accent: #00b4d8;
  --accent-hover: #0077b6;
  --accent-gradient: linear-gradient(
    135deg,
    #00b4d8 0%,
    #0077b6 50%,
    #023e8a 100%
  );

  /* Borders and Dividers */
  --border: #e8f4f8;

  /* Status Colors */
  --success: #00c851;
  --warning: #ff9f00;
  --error: #ff4444;

  /* Typography Scale */
  --h1-size: clamp(1rem, 2.6923vw, 2.75rem);
  --h2-size: clamp(0.9375rem, 0.0962vw, 1rem);
  --h3-size: clamp(0.8125rem, 0.0962vw, 0.875rem);
  --body-size: clamp(0.875rem, 0.1923vw, 1rem);

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

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

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.2s ease;
}

/* Base Typography */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: var(--body-size);
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--primary-bg);
  scroll-behavior: smooth;
}

/* Homepage background image (excluding hero section) */
body.homepage {
  background-image: url("../img/site-background.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

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

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

h2 {
  font-size: var(--h2-size);
  color: var(--text-primary);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: var(--h3-size);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

/* Paragraphs and Text */
p {
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

/* Lists */
ul,
ol {
  margin-left: var(--space-md);
  margin-bottom: var(--space-sm);
}

li {
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* Header */
header {
  background: var(--primary-bg);
  border-bottom: 1px solid var(--border);
  position: relative;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.logo img {
  height: 90px;
  width: auto;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-md);
  margin: 0;
}

nav a {
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 6px;
  transition: var(--transition-fast);
}

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

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 2px 0;
  transition: var(--transition-fast);
}

/* Hero Section */
.hero {
  background: var(--accent-gradient);
  color: white;
  text-align: center;
  padding: var(--space-xl) 0;
  margin-bottom: var(--space-xl);
}

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

.hero p {
  font-size: 1.2rem;
  margin-bottom: var(--space-lg);
  opacity: 0.9;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 500;
  margin: 0;
}

.hero-features li::before {
  content: "✓";
  display: inline-block;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  font-size: 12px;
}

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

.casino-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
}

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

.casino-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.casino-logo {
  background-color: #00b4d8;
  padding: 10px;
  border-radius: 10px;
  margin-right: 10px;
  height: 50px;
  width: auto;
}

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

.casino-rating {
  display: flex;
  gap: 2px;
}

.star {
  color: var(--warning);
  font-size: 1.2rem;
}

.play-btn {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.casino-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.casino-advantages-column {
  display: flex;
  flex-direction: column;
}

.casino-bonus-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.casino-advantages {
  list-style: none;
  margin: 0;
}

.casino-advantages li {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.casino-advantages li::before {
  content: "✓";
  display: inline-block;
  width: 16px;
  height: 16px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  font-size: 10px;
  font-weight: bold;
}

.casino-bonus {
  background: var(--accent-gradient);
  color: white;
  padding: var(--space-sm);
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.payment-methods {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.payment-methods img {
  height: 20px;
  width: auto;
  transition: var(--transition-fast);
  flex: 0 0 auto;
}

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

/* Content Sections */
.content-section {
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.content-section h2 {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
}

.content-section p {
  text-align: justify;
  line-height: 1.7;
}

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

.footer-content {
  display: grid;
  gap: var(--space-lg);
  text-align: center;
}

.footer-section h3 {
  color: var(--accent);
  margin-bottom: var(--space-md);
}

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

.footer-logos {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin: var(--space-lg) 0;
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logos img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: var(--transition-fast);
}

.footer-logos img:hover {
  opacity: 1;
}

.footer-links {
  display: flex;
  justify-content: start;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin: var(--space-md) 0;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-xs);
  border-radius: 4px;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

.footer-disclaimer {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Age Restriction Banner */
.age-restriction {
  background: var(--error);
  color: white;
  text-align: center;
  padding: var(--space-sm);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-fast);
  cursor: pointer;
  border: none;
  font-size: var(--body-size);
}

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

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

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

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

/* Responsive Design */
/* Mobile (0-599px) */
@media (max-width: 599px) {
  body.homepage {
    background-attachment: scroll;
  }

  .header-content {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .nav-toggle {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
    display: none;
  }

  nav.nav-open ul {
    display: flex;
  }

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

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

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

  .casino-rating-section {
    align-items: center;
  }

  .casino-content {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .payment-methods {
    justify-content: center;
  }

  .footer-logos {
    gap: var(--space-sm);
  }

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

/* Tablet (600-959px) */
@media (min-width: 600px) and (max-width: 959px) {
  .casinos-grid {
    grid-template-columns: 1fr;
  }

  .casino-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .casino-rating-section {
    flex-direction: row;
    gap: var(--space-md);
  }
}

/* Desktop (960px+) */
@media (min-width: 960px) {
  .casinos-grid {
    grid-template-columns: 1fr;
  }

  .casino-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: start;
  }

  .casino-rating-section {
    flex-direction: row;
    gap: var(--space-md);
  }

  .payment-methods {
    justify-content: flex-start;
  }

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

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
  .container {
    padding: 0 var(--space-md);
  }

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

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  body {
    scroll-behavior: auto;
  }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  body {
    background: white !important;
    color: black !important;
  }

  .hero {
    background: white !important;
    color: black !important;
  }

  .casino-card {
    border: 1px solid black !important;
    box-shadow: none !important;
  }
}
