/* =========================================
   Global Base Styles
========================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --text-muted: #6b7280;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e5e7eb;        /* light text on dark outer background */
  background: #020617;   /* dark navy background */
  line-height: 1.5;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

/* Restore dark text INSIDE light components */
.card,
.table-card,
.hero,
.casino-card,
.highlight-card,
.section .card,
.notice {
  color: #111827;
}

/* =========================================
   Navbar
========================================= */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  background: rgba(15, 23, 42, 0.96);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #1f2937;
}

.brand {
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  color: #f9fafb;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.nav-links a {
  text-decoration: none;
  color: #e5e7eb;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  background: #1f2937;
  color: #ffffff;
}

/* =========================================
   Hero Section
========================================= */

.hero {
  padding: 1.5rem 1.25rem 1.75rem;
  border-radius: 1.25rem;
  background: radial-gradient(circle at top left, #dbeafe, #eff6ff 40%, #f9fafb);
  border: 1px solid #e5e7eb;
  margin-bottom: 1.75rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: 1.8rem;
  color: #111827;
}

.hero p {
  margin: 0.25rem 0;
  color: #374151;
}

.hero .sub {
  font-size: 0.85rem;
  color: #6b7280;
}

/* =========================================
   Sections & Notice Card
========================================= */

.section {
  margin-bottom: 2rem;
}

/* section headings on dark background (Quick Comparison, Top Picks, Daily Highlight, Browse) */
.section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
  color: #f9fafb;
}

.section .sub {
  margin-top: 0;
  color: #cbd5e1;
  font-size: 0.9rem;
}

/* yellow explainer card */
.notice {
  background: #fef3c7;
  border-radius: 1.25rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid #fbbf24;
  margin-bottom: 1.75rem;
}

/* heading inside yellow box must be dark */
.notice h2 {
  color: #111827;
  margin-top: 0;
}

.notice p {
  margin: 0.25rem 0;
}

.notice ul {
  margin: 0.5rem 0 0.25rem;
  padding-left: 1.25rem;
}

/* =========================================
   Cards, Columns & Casino Grid
========================================= */

.card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.card h3 {
  margin-top: 0;
  color: #111827;
}

.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.casino-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.casino-card h3 {
  margin-top: 0;
  color: #111827;
}

.casino-card p {
  margin: 0.25rem 0;
}

/* Daily highlight card */
.highlight-card {
  border: 1px solid #93c5fd;
  background: #eff6ff;
}

/* meta text in cards */
.meta {
  font-size: 0.8rem;
  color: #4b5563;
  margin-top: 0.4rem;
}

/* =========================================
   Buttons
========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: #111827;
  color: #f9fafb;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.btn:hover {
  background: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.25);
}

.btn-secondary {
  background: #e5e7eb;
  color: #111827;
  margin-right: 0.4rem;
}

.btn-secondary:hover {
  background: #d1d5db;
  box-shadow: none;
}

.btn-xs {
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
}

/* generic primary alias */
.btn-primary {
  background: #111827;
  color: #f9fafb;
}

/* =========================================
   Tags (used in cards & yellow text)
========================================= */

.tags {
  margin: 0.3rem 0 0.35rem;
}

.tag {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
  background: #e5e7eb;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tag--sweeps {
  background: #e0f2fe;
  color: #0369a1;
}

.tag--offshore {
  background: #fee2e2;
  color: #b91c1c;
}

.tag--crypto {
  background: #f5f3ff;
  color: #6d28d9;
}

.tag--sportsbook {
  background: #dcfce7;
  color: #15803d;
}

.tag--charity {
  background: #fef3c7;
  color: #92400e;
}

/* =========================================
   Filter Pills (Browse Casinos by Type)
========================================= */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-btn {
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  background: #ffffff;
  cursor: pointer;
  color: #374151;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-btn:hover {
  background: #e5e7eb;
}

.filter-btn.active {
  background: #111827;
  color: #f9fafb;
  border-color: #111827;
}

/* =========================================
   Quick Comparison – Dark Dashboard Table
========================================= */

#quick-comparison h2 {
  color: #f9fafb;
}

#quick-comparison p {
  color: #cbd5e1;
}

.summary-table-wrapper {
  margin-top: 0.5rem;
  background: #020617;
  border-radius: 1rem;
  border: 1px solid #1f2937;
  padding: 0.75rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.65);
  overflow-x: auto;
}

.summary-table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  font-size: 0.9rem;
}

.summary-table-wrapper thead {
  background: transparent;
}

.summary-table-wrapper th,
.summary-table-wrapper td {
  padding: 0.65rem 0.6rem;
  text-align: left;
}

/* Header row */
.summary-table-wrapper th {
  color: #cbd5e1;
  font-weight: 600;
  border-bottom: 1px solid #1f2937;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

/* Body rows */
.summary-table-wrapper tbody tr {
  background: rgba(15, 23, 42, 0.9);
}

.summary-table-wrapper tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.96);
}

.summary-table-wrapper tbody tr:hover {
  background: #111827;
}

.summary-table-wrapper td {
  color: #e5e7eb;
  border-bottom: 1px solid #020617;
}

.summary-table-wrapper td a {
  color: #93c5fd;
  text-decoration: none;
}

.summary-table-wrapper td a:hover {
  text-decoration: underline;
}

/* Pills inside the table */
.summary-table-wrapper .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #0f172a;
}

.summary-table-wrapper .pill-social {
  background: #bfdbfe;
}

.summary-table-wrapper .pill-fast {
  background: #bbf7d0;
}

.summary-table-wrapper .pill-slower {
  background: #fecaca;
}

.summary-table-wrapper .pill-trust {
  background: #fef3c7;
}

.summary-table-wrapper .pill-crypto {
  background: #ddd6fe;
}

/* Neon green/teal Play buttons inside the table ONLY */
.summary-table-wrapper .btn.btn-primary {
  background: linear-gradient(135deg, #22c55e, #22d3ee);
  color: #022c22;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.8),
    0 6px 12px rgba(34, 197, 94, 0.45);
}

.summary-table-wrapper .btn.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* =========================================
   Q&A Block (on individual casino pages)
========================================= */

.qa p {
  margin: 0.4rem 0;
  font-size: 0.95rem;
}

.qa strong {
  color: #111827;
}

/* =========================================
   Footer
========================================= */

footer {
  margin-top: 2.5rem;
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: center;
}

/* =========================================
   Responsive Adjustments
========================================= */

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .hero {
    padding: 1.25rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .nav-links {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .card {
    padding: 0.9rem 1rem;
  }

  .section h2 {
    font-size: 1.25rem;
  }
}
