/* Zyfrilo - UK Casino Comparison Website */
/* Modern Minimalism Premium - iGaming Adapted */

/* Design Tokens - Colors */
:root {
  /* Primary (Navy - Trust) */
  --primary-50: #E8EDF3;
  --primary-100: #C5D3E3;
  --primary-500: #1E3A5F;
  --primary-700: #142942;
  --primary-900: #0A1520;

  /* Accent (Gold - Premium) */
  --accent-50: #FCF8F0;
  --accent-100: #F5EBDA;
  --accent-500: #D4A853;
  --accent-600: #C49543;
  --accent-700: #A67B35;

  /* Neutral */
  --neutral-50: #FAFAFA;
  --neutral-100: #F5F5F5;
  --neutral-200: #E5E5E5;
  --neutral-300: #D4D4D4;
  --neutral-500: #737373;
  --neutral-700: #404040;
  --neutral-900: #171717;

  /* Semantic */
  --success: #16A34A;
  --warning: #EAB308;
  --error: #DC2626;
  --info: #0EA5E9;

  /* Background */
  --bg-page: #FAFAFA;
  --bg-surface: #FFFFFF;
}

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

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

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-page);
  color: var(--neutral-900);
  font-size: 16px;
  line-height: 1.5;
}

/* Typography Scale */
.text-hero {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
}

.text-h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

.text-h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
}

.text-h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.text-h4 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.text-body-lg {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.text-body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.text-small {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.text-caption {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}

.section-lg {
  padding: 96px 0;
}

/* Grid System */
.grid {
  display: grid;
  gap: 24px;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Navigation */
.navbar {
  background-color: var(--bg-surface);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--neutral-200);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

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

.logo {
  height: 36px;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-500);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--primary-500);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-link:hover {
  color: var(--primary-700);
}

.nav-18-badge {
  font-size: 12px;
  color: var(--accent-500);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  min-height: 48px;
}

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

.btn-primary:hover {
  background-color: var(--accent-600);
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-500);
  border: 2px solid var(--primary-500);
}

.btn-secondary:hover {
  background-color: var(--primary-50);
}

/* Cards */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  border-color: var(--primary-100);
}

.card-featured {
  position: relative;
}

.card-featured::before {
  content: "Featured";
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--accent-500);
  color: white;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
}

/* Casino Card */
.casino-card {
  text-align: center;
  min-height: 280px;
}

.casino-logo {
  height: 80px;
  object-fit: contain;
  margin: 0 auto 16px;
}

.casino-name {
  color: var(--primary-500);
  margin: 16px 0 8px;
}

.casino-bonus {
  color: var(--neutral-700);
  margin-bottom: 16px;
}

.stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 16px 0;
}

.star {
  width: 20px;
  height: 20px;
  fill: var(--neutral-300);
}

.star.filled {
  fill: var(--accent-500);
}

.star.half {
  fill: var(--accent-500);
}

.casino-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(30, 58, 95, 0.8), rgba(30, 58, 95, 0.9)), url('../images/badges/hero_bg_2.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 96px 0;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  color: white;
  margin-bottom: 24px;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  color: var(--primary-500);
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--neutral-700);
  max-width: 640px;
  margin: 0 auto;
}

/* Comparison Table */
.comparison-table {
  overflow-x: auto;
  border-radius: 12px;
  background-color: var(--bg-surface);
  border: 1px solid var(--neutral-200);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  background-color: var(--primary-500);
  color: white;
  padding: 20px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
}

.table td {
  padding: 20px 16px;
  border-bottom: 1px solid var(--neutral-200);
}

.table tr:nth-child(even) {
  background-color: var(--neutral-50);
}

.table tr:hover {
  background-color: var(--accent-50);
}

.table img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-right: 12px;
}

/* Trust Badges */
.trust-badges {
  background-color: var(--primary-900);
  color: white;
  padding: 48px 0;
  text-align: center;
}

.badges-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.badge {
  height: 48px;
  filter: grayscale(100%) brightness(0.8) contrast(1.2);
  opacity: 0.8;
}

.badge-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

/* Footer */
.footer {
  background-color: var(--primary-900);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer h4 {
  color: white;
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 8px;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer a:hover {
  color: white;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1023px) {
  .container {
    padding: 0 16px;
  }
  
  .hero {
    padding: 64px 0;
  }
  
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .text-hero {
    font-size: 32px;
  }
  
  .text-h1 {
    font-size: 28px;
  }
  
  .text-h2 {
    font-size: 24px;
  }
  
  .text-h3 {
    font-size: 20px;
  }
  
  .hero {
    min-height: 400px;
    padding: 48px 0;
  }
  
  .section {
    padding: 48px 0;
  }
  
  .section-lg {
    padding: 64px 0;
  }
  
  .grid-cols-4,
  .grid-cols-3,
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .table {
    font-size: 14px;
  }
  
  .table th,
  .table td {
    padding: 12px 8px;
  }
  
  .badges-row {
    gap: 16px;
  }
  
  .badge {
    height: 40px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

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

.animate-fade-in {
  animation: fadeIn 0.35s ease-out;
}

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

.text-accent {
  color: var(--accent-500);
}

.text-primary {
  color: var(--primary-500);
}

.text-neutral {
  color: var(--neutral-700);
}

.mb-4 {
  margin-bottom: 16px;
}

.mb-8 {
  margin-bottom: 32px;
}

.mt-8 {
  margin-top: 32px;
}

.hidden {
  display: none;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: 16px;
}

.w-full {
  width: 100%;
}

/* No-wagering indicator */
.no-wagering-badge {
  background-color: var(--success);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-left: 8px;
}

/* Fast payouts indicator */
.fast-payouts-badge {
  background-color: var(--info);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-left: 8px;
}

/* Loading spinner */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 4px solid var(--neutral-300);
  border-top: 4px solid var(--primary-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Filter tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 16px;
  border-radius: 9999px;
  background-color: var(--neutral-100);
  color: var(--neutral-700);
  text-decoration: none;
  transition: all 0.25s ease;
  font-weight: 500;
}

.filter-tab:hover,
.filter-tab.active {
  background-color: var(--accent-500);
  color: white;
}

/* Responsive table */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Page headers */
.page-header {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: white;
  padding: 64px 0;
  text-align: center;
}

.page-header h1 {
  color: white;
  margin-bottom: 16px;
}

.page-header p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin: 0 auto;
}
