/* ============================================
   TopCasinoKenya - Main Stylesheet
   Kenya flag colours: Red / Green / White / Black
   ============================================ */

/* === CSS VARIABLES === */
:root {
  /* Primary Colors - Kenya Red */
  --color-primary: #BB0000;
  --color-primary-dark: #8B0000;
  --color-primary-light: #DD2222;

  /* Secondary Colors - Kenya Green */
  --color-secondary: #006600;
  --color-secondary-dark: #004400;
  --color-secondary-light: #008800;

  /* Accent - White (high contrast) */
  --color-accent: #FFFFFF;
  --color-accent-dark: #CCCCCC;

  /* Dark Theme Base */
  --color-dark: #080808;
  --color-dark-lighter: #111111;
  --color-dark-card: #161616;
  --color-gray: #888888;
  --color-gray-light: #2a2a2a;
  --color-light: #1a1a1a;
  --color-white: #ffffff;

  /* Status Colors */
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #BB0000 0%, #8B0000 100%);
  --gradient-secondary: linear-gradient(135deg, #006600 0%, #008800 100%);
  --gradient-accent: linear-gradient(135deg, #BB0000 0%, #CC1111 50%, #006600 100%);
  --gradient-dark: linear-gradient(180deg, #080808 0%, #111111 100%);
  --gradient-red: linear-gradient(135deg, #BB0000 0%, #DD2222 50%, #BB0000 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.4);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.5), 0 2px 4px -1px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.6), 0 4px 6px -2px rgba(0,0,0,0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.7), 0 10px 10px -5px rgba(0,0,0,0.5);
  --shadow-glow-gold: 0 0 20px rgba(187,0,0,0.3), 0 0 40px rgba(187,0,0,0.1);
  --shadow-glow-purple: 0 0 20px rgba(0,102,0,0.3), 0 0 40px rgba(0,102,0,0.1);
  --shadow-glow-blue: 0 0 20px rgba(187,0,0,0.2), 0 0 40px rgba(187,0,0,0.1);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Border Radius - Sharp per design spec */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 10px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Container */
  --container-max: 1280px;
  --container-padding: 2rem;
}

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

body {
  overflow-x: hidden;
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-white);
  background: var(--color-dark);
  background-image:
    radial-gradient(ellipse at center, #2a0000 0%, #080808 60%),
    radial-gradient(circle at 80% 80%, rgba(0,102,0,0.06) 0%, transparent 50%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(187,0,0,0.015) 2px,
      rgba(187,0,0,0.015) 4px
    );
  pointer-events: none;
  z-index: 1;
}

body > * { position: relative; z-index: 2; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin-bottom: var(--spacing-sm);
  color: rgba(255,255,255,0.85);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all var(--transition-base);
}

a:hover {
  color: var(--color-primary-light);
}

strong {
  font-weight: 700;
  color: var(--color-primary);
}

ul, ol { margin-left: 1.5rem; margin-bottom: var(--spacing-sm); }
li { margin-bottom: 0.5rem; color: rgba(255,255,255,0.8); }

/* === CONTAINER === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: var(--shadow-md), 0 0 20px rgba(187,0,0,0.4);
  border: 2px solid #CC0000;
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(187,0,0,0.5);
  color: #ffffff;
}

.btn-primary:active:not(:disabled) { transform: translateY(0); }

.btn-secondary {
  background: var(--gradient-secondary);
  color: var(--color-white);
  font-weight: 700;
  box-shadow: var(--shadow-md), var(--shadow-glow-purple);
}

.btn-secondary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), var(--shadow-glow-purple);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover:not(:disabled) {
  background: rgba(255,255,255,0.1);
  border-color: white;
  color: white;
  transform: translateY(-2px);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-full { width: 100%; }

/* === CARDS === */
.card {
  background: var(--color-dark-card);
  border: 1px solid rgba(187,0,0,0.2);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-red);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-xl), 0 0 25px rgba(187,0,0,0.2);
  transform: translateY(-4px);
  border-color: rgba(187,0,0,0.4);
}

.card:hover::before { opacity: 1; }

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.card-body { color: rgba(255,255,255,0.85); }

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  line-height: 1;
}

.badge-primary { background: var(--color-primary); color: white; box-shadow: 0 0 12px rgba(187,0,0,0.4); }
.badge-secondary { background: var(--color-secondary); color: white; }
.badge-success { background: #22c55e; color: white; }
.badge-warning { background: #f59e0b; color: #111; }

/* === SECTION === */
.section { padding: var(--spacing-2xl) 0; }

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--spacing-xl);
  color: var(--color-white);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--color-primary);
  box-shadow: 0 0 10px rgba(187,0,0,0.6);
}

.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--spacing-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* === GRID === */
.grid { display: grid; gap: var(--spacing-lg); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* === ANIMATIONS === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.fade-in { animation: fadeIn 0.6s ease forwards; }
.slide-in-left { animation: slideInLeft 0.6s ease forwards; }

/* === UTILITIES === */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-muted { color: var(--color-gray); }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

/* === FOOTER === */
footer {
  background: #0a0000;
  border-top: 2px solid rgba(187,0,0,0.3);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--color-primary);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition-base);
}
.footer-col ul li a:hover { color: var(--color-primary); }

.footer-bottom {
  border-top: 1px solid rgba(187,0,0,0.15);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

.footer-disclaimer {
  max-width: 800px;
  margin: 1rem auto 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  :root { --container-padding: 1.5rem; }
  .grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .btn { padding: 0.625rem 1.25rem; font-size: 0.9375rem; }
}

@media (max-width: 640px) {
  html { font-size: 15px; }
  .section { padding: var(--spacing-xl) 0; }
}
