/* ========================================
   CryptoGambling.best - Main Stylesheet
   Dark Premium Crypto Casino Review Theme
   ======================================== */

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2235;
  --bg-card-hover: #1f2a42;
  --accent-gold: #f0b90b;
  --accent-gold-dim: #c99a08;
  --accent-green: #00c853;
  --accent-red: #ff4757;
  --accent-blue: #3b82f6;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #1e293b;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.2s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5 { color: var(--text-primary); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
a { color: var(--accent-gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-gold-dim); }
p { color: var(--text-secondary); }

/* ---- Container ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---- Header ---- */
.site-header {
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 20px;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-gold), #fbbf24);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.logo span { color: var(--accent-gold); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gold);
  border-radius: 2px;
}
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Hero ---- */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(240,185,11,0.06) 0%, transparent 60%);
}
.hero-badge {
  display: inline-block;
  background: rgba(240, 185, 11, 0.1);
  border: 1px solid rgba(240, 185, 11, 0.3);
  color: var(--accent-gold);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}
.hero h1 { margin-bottom: 16px; }
.hero p { font-size: 1.125rem; max-width: 600px; margin: 0 auto 40px; }
.search-bar {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: var(--transition);
}
.search-bar:focus-within {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(240,185,11,0.1);
}
.search-bar input {
  flex: 1;
  background: none;
  border: none;
  padding: 16px 24px;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar button {
  background: var(--accent-gold);
  border: none;
  padding: 12px 28px;
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}
.search-bar button:hover { background: var(--accent-gold-dim); }

/* ---- Ranking Table ---- */
.section { padding: 60px 0; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.section-header h2 { display: flex; align-items: center; gap: 12px; }
.section-header h2::before {
  content: '';
  width: 4px;
  height: 28px;
  background: var(--accent-gold);
  border-radius: 2px;
}
.ranking-table-wrap {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.ranking-table { width: 100%; border-collapse: collapse; }
.ranking-table thead th {
  background: var(--bg-secondary);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.ranking-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.ranking-table tbody tr:last-child { border-bottom: none; }
.ranking-table tbody tr:hover { background: var(--bg-card-hover); }
.ranking-table td { padding: 16px; vertical-align: middle; }
.rank-cell {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-muted);
  width: 60px;
  text-align: center;
}
.rank-cell.top-3 { color: var(--accent-gold); }
.rank-cell.gold { color: #f59e0b; }
.rank-cell.silver { color: #94a3b8; }
.rank-cell.bronze { color: #cd7f32; }
.casino-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 200px;
}
.casino-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.casino-name { font-weight: 600; font-size: 0.95rem; }
.casino-name small { display: block; color: var(--text-muted); font-size: 0.8rem; font-weight: 400; }
.rating-cell .rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,200,83,0.1);
  color: var(--accent-green);
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9rem;
}
.bonus-cell { color: var(--text-secondary); font-size: 0.85rem; max-width: 200px; }
.bonus-cell strong { color: var(--accent-gold); font-size: 0.85rem; display: block; }
.pros-cell, .cons-cell { font-size: 0.8rem; }
.pros-cell li, .cons-cell li { list-style: none; padding: 2px 0; }
.pros-cell li::before { content: '+ '; color: var(--accent-green); font-weight: 700; }
.cons-cell li::before { content: '− '; color: var(--accent-red); font-weight: 700; }
.play-btn {
  display: inline-block;
  background: var(--accent-gold);
  color: #000 !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  white-space: nowrap;
}
.play-btn:hover {
  background: var(--accent-gold-dim);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(240,185,11,0.3);
}
.review-link {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: underline;
  margin-top: 4px;
  display: block;
}

/* ---- Feature Cards ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}
.feature-card:hover {
  border-color: rgba(240,185,11,0.3);
  transform: translateY(-2px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(240,185,11,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.feature-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.feature-card p { font-size: 0.9rem; }

/* ---- Casino Review ---- */
.review-hero {
  padding: 60px 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.review-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}
.review-logo {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--border);
}
.review-title-area h1 { font-size: 2rem; margin-bottom: 8px; }
.review-title-area p { color: var(--text-muted); }
.review-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.meta-item .badge {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}
.badge-green { background: rgba(0,200,83,0.1); color: var(--accent-green); }
.badge-gold { background: rgba(240,185,11,0.1); color: var(--accent-gold); }
.badge-red { background: rgba(255,71,87,0.1); color: var(--accent-red); }
.badge-blue { background: rgba(59,130,246,0.1); color: var(--accent-blue); }

/* ---- Pros/Cons ---- */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0;
}
.pros-box, .cons-box {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}
.pros-box { border-top: 3px solid var(--accent-green); }
.cons-box { border-top: 3px solid var(--accent-red); }
.pros-box h3 { color: var(--accent-green); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.cons-box h3 { color: var(--accent-red); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.pros-box ul, .cons-box ul { list-style: none; }
.pros-box li, .cons-box li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.pros-box li:last-child, .cons-box li:last-child { border-bottom: none; }

/* ---- Bonus Box ---- */
.bonus-box {
  background: linear-gradient(135deg, rgba(240,185,11,0.1), rgba(240,185,11,0.03));
  border: 1px solid rgba(240,185,11,0.3);
  border-radius: var(--radius);
  padding: 32px;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}
.bonus-box::before {
  content: '🎁';
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 80px;
  opacity: 0.1;
}
.bonus-box h3 { color: var(--accent-gold); margin-bottom: 16px; font-size: 1.3rem; }
.bonus-item {
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.bonus-item:last-child { margin-bottom: 0; }
.bonus-label { font-size: 0.85rem; color: var(--text-muted); }
.bonus-value { font-weight: 700; color: var(--accent-gold); font-size: 1rem; }

/* ---- Info Grid ---- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}
.info-card .label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.info-card .value { font-weight: 600; font-size: 0.95rem; }

/* ---- Content ---- */
.content-body {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 40px;
  margin: 32px 0;
  font-size: 1rem;
}
.content-body h2 { margin: 32px 0 16px; font-size: 1.5rem; }
.content-body h2:first-child { margin-top: 0; }
.content-body p { margin-bottom: 16px; }
.content-body ul { margin: 16px 0 16px 24px; }
.content-body li { color: var(--text-secondary); margin-bottom: 8px; }
.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}
.content-body th, .content-body td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}
.content-body th { background: var(--bg-secondary); font-weight: 600; color: var(--text-primary); }
.content-body tr:nth-child(even) { background: rgba(255,255,255,0.02); }

/* ---- CTA ---- */
.cta-section {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  margin: 32px 0;
}
.cta-section h2 { margin-bottom: 12px; }
.cta-section p { max-width: 500px; margin: 0 auto 24px; }

/* ---- Footer ---- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: 0.9rem; margin-top: 12px; max-width: 300px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }
.disclaimer-text {
  background: rgba(255,71,87,0.05);
  border: 1px solid rgba(255,71,87,0.2);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    gap: 16px;
  }
  .hero { padding: 40px 0 40px; }
  .ranking-table thead { display: none; }
  .ranking-table tbody tr { display: block; padding: 16px; border-bottom: 1px solid var(--border); }
  .ranking-table td { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border: none; }
  .ranking-table td::before { content: attr(data-label); font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
  .casino-cell { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pros-cons-grid { grid-template-columns: 1fr; }
  .content-body { padding: 24px; }
  .cta-section { padding: 32px 24px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.75rem; }
}
