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

:root {
  /* Color Palette - Luxury Obsidian & Radiant Gold */
  --bg-dark: #070a12;
  --bg-surface: #0f1523;
  --bg-elevated: #162035;
  --bg-glass: rgba(15, 21, 35, 0.85);
  
  --gold-primary: #f5b400;
  --gold-glow: #ffd043;
  --gold-gradient: linear-gradient(135deg, #ffd043 0%, #f5b400 50%, #d49200 100%);
  --gold-border: rgba(245, 180, 0, 0.22);
  --gold-box-shadow: 0 8px 32px rgba(245, 180, 0, 0.18);

  --cyan-accent: #00f0ff;
  --emerald-accent: #10b981;
  --ruby-accent: #ff3366;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-active: rgba(245, 180, 0, 0.45);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #ffffff;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); margin-top: 2rem; margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); margin-top: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
}

.brand-logo img {
  height: 44px;
  width: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-border);
}

.brand-logo span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Max 6 Category Nav Tabs */
.nav-categories {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-primary);
  background: rgba(245, 180, 0, 0.08);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-smooth);
  z-index: 1100;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.dropdown-link:hover {
  background: rgba(245, 180, 0, 0.1);
}

.dropdown-link strong {
  font-size: 0.9rem;
  color: #fff;
}

.dropdown-link small {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Header CTAs */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-decoration: none;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #070a12;
  box-shadow: 0 4px 20px rgba(245, 180, 0, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(245, 180, 0, 0.5);
  color: #000;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid var(--border-light);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold-primary);
  border-color: var(--gold-border);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section with Dynamic Casino Glow */
.hero-section {
  position: relative;
  padding: 5rem 0 4rem;
  background: radial-gradient(circle at 50% 20%, rgba(245, 180, 0, 0.14) 0%, rgba(7, 10, 18, 0.98) 75%),
              linear-gradient(180deg, #0b111e 0%, var(--bg-dark) 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.hero-particle-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 180, 0, 0.1);
  border: 1px solid var(--gold-border);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 1.25rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
}

.hero-content h1 {
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-content .hero-lead {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-card-media {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-border);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--gold-box-shadow);
  transition: transform var(--transition-smooth);
}

.hero-card-media:hover {
  transform: translateY(-5px);
}

/* Live Winning Marquee Ticker */
.ticker-bar {
  background: #0c1220;
  border-bottom: 1px solid var(--border-light);
  padding: 0.75rem 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  animation: tickerSlide 30s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ticker-item strong {
  color: var(--emerald-accent);
}

@keyframes tickerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Category Quick Tab Bar */
.category-pills {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 1.5rem 0 1rem;
  scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

.pill-item {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: #e2e8f0;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.pill-item:hover, .pill-item.active {
  background: var(--gold-gradient);
  color: #070a12;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(245, 180, 0, 0.3);
}

/* Scannable Content Directives: Direct Answer Capsule */
.answer-capsule {
  background: linear-gradient(135deg, rgba(245, 180, 0, 0.08) 0%, rgba(15, 21, 35, 0.95) 100%);
  border-left: 4px solid var(--gold-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.answer-capsule strong {
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Author Byline Component */
.author-byline {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0 1.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--gold-primary);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}

.author-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--gold-primary);
}

.breadcrumbs span {
  color: var(--text-dim);
}

/* 3x3 Hub Directory Grid & 3x2 Spoke Grid */
.grid-3x3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.grid-3x2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.card-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.card-item:hover {
  transform: translateY(-4px);
  border-color: var(--gold-border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 180, 0, 0.1);
}

.card-image {
  height: 180px;
  width: 100%;
  object-fit: cover;
  background: var(--bg-elevated);
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1rem;
}

.card-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Pagination UI */
.pagination-ui {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 2.5rem 0;
}

.page-btn {
  padding: 0.6rem 1.1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.page-btn.active, .page-btn:hover {
  background: var(--gold-gradient);
  color: #000;
  border-color: transparent;
}

/* Responsive Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.925rem;
}

th, td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

th {
  background: var(--bg-elevated);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Collapsible FAQ Accordion */
.faq-accordion {
  margin: 2rem 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-question:hover {
  color: var(--gold-primary);
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform var(--transition-fast);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer p {
  padding-bottom: 1.25rem;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

/* Two-Column Article Layout with Sticky Sidebar */
.article-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  margin: 3rem 0;
}

.sticky-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.toc-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--gold-primary);
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toc-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: block;
  padding: 0.35rem 0;
  transition: color var(--transition-fast);
}

.toc-link:hover {
  color: #fff;
  padding-left: 0.25rem;
}

/* Footer & Compliance Bar */
.site-footer {
  background: #05080f;
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

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

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

.payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.payment-badge {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
}

.responsible-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  gap: 2rem;
  flex-wrap: wrap;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.9rem;
}

.footer-legal-text {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-top: 1.5rem;
}

/* Mobile Off-canvas Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-light);
  z-index: 2000;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  transition: right 0.35s ease-out;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.drawer-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
}

.drawer-links a {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .grid-3x3, .grid-3x2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .sticky-sidebar {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-categories, .header-actions {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .grid-3x3, .grid-3x2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
