/* ==========================================================================
   CSS VARIABLES & DESIGN SYSTEM
   ========================================================================== */
:root {
  /* Color Palette */
  --bg-color: #0b0f19;
  --bg-color-alt: #1a202c;
  --bg-color-glass: rgba(26, 32, 44, 0.85);
  --text-color: #e2e8f0;
  --text-color-muted: #94a3b8;
  --accent-gold: #ffd700;
  --accent-gold-hover: #e6c200;
  --cta-green: #00e676;
  --cta-green-hover: #00c853;
  --border-color: #2d3748;
  
  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Borders & Shadows */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 15px rgba(0, 230, 118, 0.3);
}

/* ==========================================================================
   CSS RESET
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: var(--spacing-sm);
}

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

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

ul, ol {
  list-style: none;
}

/* ==========================================================================
   UTILITIES & LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

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

.highlight {
  color: var(--accent-gold);
}

.btn {
  display: inline-block;
  background-color: var(--cta-green);
  color: #0b0f19;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.btn:hover {
  background-color: var(--cta-green-hover);
  color: #0b0f19;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-primary {
  width: 100%;
}

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

.btn-outline:hover {
  background-color: var(--accent-gold);
  color: #0b0f19;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(0, 230, 118, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

.btn-pulse {
  animation: pulse 2s infinite;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

.glassmorphism {
  background: var(--bg-color-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.logo-icon {
  font-size: 1.8rem;
}

.nav-list {
  display: flex;
  gap: 1.5rem;
}

.nav-list a {
  color: var(--text-color);
  font-weight: 500;
}

.nav-list a:hover {
  color: var(--accent-gold);
}

@media (max-width: 768px) {
  .nav, .header-action {
    display: none;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, rgba(26, 32, 44, 0.9) 0%, rgba(11, 15, 25, 1) 100%);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--spacing-md);
  background: linear-gradient(to right, #fff, var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-color-muted);
  max-width: 800px;
  margin: 0 auto var(--spacing-lg);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.trust-badge {
  background: var(--bg-color-alt);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   CASINO RANKINGS
   ========================================================================== */
.top-casinos {
  padding: var(--spacing-xl) 0;
}

.section-header {
  margin-bottom: var(--spacing-xl);
}

.section-title {
  font-size: 2rem;
}

.section-description {
  color: var(--text-color-muted);
  max-width: 700px;
  margin: 0 auto var(--spacing-sm);
}

.last-updated {
  font-size: 0.85rem;
  color: var(--text-color-muted);
}

.casinos-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

/* CASINO CARD */
.casino-card {
  display: flex;
  background: var(--bg-color-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-md);
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.casino-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border-color: var(--accent-gold);
}

/* Rank Badge */
.casino-rank {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--accent-gold);
  color: #0b0f19;
  font-weight: 800;
  padding: 0.25rem 1rem;
  border-bottom-right-radius: var(--border-radius-lg);
  font-family: var(--font-heading);
}

.casino-brand {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 150px;
}

.casino-logo-wrapper {
  background: #fff;
  padding: 0.5rem;
  border-radius: var(--border-radius-sm);
  width: 120px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.casino-logo {
  max-height: 100%;
}

.casino-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stars {
  color: #4a5568;
  font-size: 1.1rem;
}

.stars .filled {
  color: var(--accent-gold);
}

.score-text {
  font-weight: 700;
  font-size: 0.9rem;
}

.casino-info {
  flex: 2;
  padding: 0 var(--spacing-lg);
  border-right: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
}

.casino-name {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.casino-bonus {
  background: rgba(255, 215, 0, 0.05);
  padding: 0.5rem;
  border-radius: var(--border-radius-sm);
  border-left: 3px solid var(--accent-gold);
}

.bonus-label {
  font-size: 0.8rem;
  color: var(--text-color-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bonus-value {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

.casino-perks {
  flex: 1.5;
  padding: 0 var(--spacing-lg);
}

.perks-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.check-icon {
  width: 16px;
  height: 16px;
  color: var(--cta-green);
}

.casino-action {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  min-width: 180px;
}

.tc-apply {
  font-size: 0.7rem;
  color: var(--text-color-muted);
}

@media (max-width: 1024px) {
  .casino-card {
    flex-wrap: wrap;
    gap: var(--spacing-md);
  }
  .casino-info {
    border-right: none;
  }
  .casino-perks {
    border-left: 1px solid var(--border-color);
  }
}

@media (max-width: 768px) {
  .casino-card {
    flex-direction: column;
    text-align: center;
    padding-top: var(--spacing-xl);
  }
  .casino-info {
    border: none;
    padding: 0;
    width: 100%;
  }
  .casino-perks {
    border: none;
    padding: 0;
    width: 100%;
  }
  .perks-list li {
    justify-content: center;
  }
  .casino-action {
    width: 100%;
  }
}

/* ==========================================================================
   SEO CONTENT ARTICLE
   ========================================================================== */
.seo-content {
  background: var(--bg-color-alt);
  padding: var(--spacing-xl) 0;
  border-top: 1px solid var(--border-color);
}

.seo-content h2, .seo-content h3 {
  margin-top: var(--spacing-lg);
  color: var(--accent-gold);
}

.seo-content p {
  margin-bottom: var(--spacing-md);
  color: var(--text-color-muted);
  font-size: 1.05rem;
}

.seo-content ul, .seo-content ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-lg);
  color: var(--text-color-muted);
}

.seo-content li {
  margin-bottom: 0.5rem;
}

.seo-content strong {
  color: var(--text-color);
}

/* Tables */
.seo-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-lg) 0;
  background: var(--bg-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.seo-content th, .seo-content td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.seo-content th {
  background: rgba(255, 215, 0, 0.1);
  color: var(--accent-gold);
  font-family: var(--font-heading);
}

.seo-content tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 768px) {
  .seo-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-section {
  margin: var(--spacing-lg) 0;
}

.faq-item {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-sm);
  transition: all 0.3s ease;
}

.faq-item[open] {
  border-color: var(--accent-gold);
  background: rgba(255, 215, 0, 0.02);
}

.faq-question {
  padding: var(--spacing-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  cursor: pointer;
  list-style: none; /* Hide default arrow in some browsers */
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::-webkit-details-marker {
  display: none; /* Hide default arrow in Chrome/Safari */
}

.faq-question::after {
  content: '+';
  color: var(--accent-gold);
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 var(--spacing-md) var(--spacing-md);
}

.faq-answer p {
  margin-bottom: 0;
  font-size: 1rem;
  color: var(--text-color-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #05080f;
  padding: var(--spacing-xl) 0 var(--spacing-md);
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-desc {
  margin-top: var(--spacing-sm);
  color: var(--text-color-muted);
  font-size: 0.9rem;
}

.footer-links h4, .footer-trust h4 {
  color: #fff;
  margin-bottom: var(--spacing-md);
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-color-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-trust p {
  color: var(--text-color-muted);
  font-size: 0.85rem;
  margin-bottom: var(--spacing-sm);
}

.trust-logos {
  display: flex;
  gap: 0.5rem;
}

.trust-badge-small {
  background: var(--bg-color-alt);
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-color-muted);
  border: 1px solid var(--border-color);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
}

.footer-bottom p {
  color: var(--text-color-muted);
  font-size: 0.85rem;
}

.disclaimer {
  margin-top: 0.5rem;
  font-size: 0.75rem !important;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}
