/* ==========================================================================
   JL9 CASINO MODERN DESIGN SYSTEM
   Visual Identity: Deep Onyx Purple (#0C0817), Royal Gold (#FFD700), Neon Scarlet (#FF2E2E)
   Compliant with gambling-website-ui-ux-designer & mobile-first standards
   ========================================================================== */

:root {
  /* Brand Primitive Tokens */
  --bg-deep: #0B0716;
  --bg-surface: #150F28;
  --bg-elevated: #20173D;
  --bg-card: rgba(28, 20, 53, 0.75);
  --bg-glass: rgba(21, 15, 40, 0.85);

  --gold-primary: #FFD700;
  --gold-light: #FFF2A3;
  --gold-dark: #C99700;
  --gold-gradient: linear-gradient(135deg, #FFF2A3 0%, #FFD700 50%, #C99700 100%);
  --gold-glow: 0 0 20px rgba(255, 215, 0, 0.35);

  --accent-red: #FF2E2E;
  --accent-red-hover: #D61515;
  --accent-red-glow: 0 0 20px rgba(255, 46, 46, 0.45);

  --accent-cyan: #00F0FF;
  --accent-green: #00E676;

  --text-main: #FFFFFF;
  --text-muted: #A39CBD;
  --text-dim: #736B8D;

  --border-subtle: rgba(255, 215, 0, 0.15);
  --border-bright: rgba(255, 215, 0, 0.4);
  --border-glass: rgba(255, 255, 255, 0.08);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container-max: 1240px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CSS Reset & Core Styling */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Flashy Animated Casino Background Utilities */
.casino-flash-bg {
  position: relative;
  background-color: var(--bg-surface);
  overflow: hidden;
}

.casino-flash-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.08) 0%, rgba(123, 31, 162, 0.06) 40%, transparent 70%);
  animation: pulseAura 12s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

@keyframes pulseAura {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.15) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}

/* Glassmorphism Container */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
}

/* Header & Navigation (Max 6 Main Tabs with Dropdown) */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  padding: 12px 0;
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 48px;
  width: auto;
}

.nav-desktop {
  display: none;
}

@media (min-width: 992px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 8px;
  }
}

.nav-link {
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: #0B0716;
  background: var(--gold-gradient);
  box-shadow: var(--gold-glow);
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.dropdown-arrow {
  width: 10px;
  height: 6px;
  transition: transform 0.25s ease;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0,0,0,0.8);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

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

.dropdown-item {
  display: block;
  padding: 10px 20px;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold-primary);
  padding-left: 26px;
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-header-login {
  background: transparent;
  color: var(--gold-primary);
  border: 1.5px solid var(--gold-primary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-header-login:hover {
  background: rgba(255, 215, 0, 0.15);
  box-shadow: var(--gold-glow);
}

.btn-header-register {
  background: var(--accent-red);
  color: #FFFFFF;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  box-shadow: var(--accent-red-glow);
  transition: var(--transition);
}

.btn-header-register:hover {
  background: var(--accent-red-hover);
  transform: scale(1.04);
}

/* Mobile Hamburger */
.mobile-toggle {
  display: block;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-main);
}

@media (min-width: 992px) {
  .mobile-toggle {
    display: none;
  }
}

/* First Container / Casino Hero Banner */
.casino-hero-section {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 60px 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 2px solid var(--border-bright);
}

.casino-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 7, 22, 0.75) 0%, rgba(11, 7, 22, 0.95) 100%);
  z-index: 1;
}

.hero-content-wrap {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-full);
  color: var(--gold-primary);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 18px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.hero-title .text-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
}

.btn-primary-cta {
  background: var(--gold-gradient);
  color: #0B0716;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1rem;
  padding: 14px 34px;
  border-radius: var(--radius-full);
  box-shadow: var(--gold-glow);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.btn-primary-cta:hover {
  transform: translateY(-2px) scale(1.03);
  color: #000;
}

.btn-secondary-cta {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1.5px solid var(--border-bright);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-secondary-cta:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

/* Trust Ticker / Live Stats Bar */
.trust-stat-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 30px;
}

@media (min-width: 768px) {
  .trust-stat-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-chip {
  background: rgba(21, 15, 40, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.stat-chip-number {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold-primary);
}

.stat-chip-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

/* 3x2 Post Grid Container (Required max 3x2) */
.section-post-grid {
  padding: 60px 0;
}

.section-head-wrap {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px auto;
}

.section-tag {
  color: var(--gold-primary);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.grid-3x2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 600px) {
  .grid-3x2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .grid-3x2 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Postcard Component */
.postcard {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.postcard:hover {
  transform: translateY(-6px);
  border-color: var(--border-bright);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), var(--gold-glow);
}

.postcard-media {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.postcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.postcard:hover .postcard-media img {
  transform: scale(1.08);
}

.postcard-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(11, 7, 22, 0.85);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.postcard-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.postcard-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.35;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.postcard-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}

.postcard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-glass);
  padding-top: 14px;
  font-size: 0.85rem;
}

.postcard-author {
  color: var(--text-dim);
  font-weight: 500;
}

.postcard-link {
  color: var(--gold-primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Pagination / Tabs Navigation */
.pagination-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.page-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.page-btn:hover, .page-btn.active {
  background: var(--gold-gradient);
  color: #0B0716;
  border-color: var(--gold-primary);
  box-shadow: var(--gold-glow);
}

.page-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Content Container & Media Elements (Spoke / Post Pages) */
.article-container {
  padding: 50px 0;
  max-width: 920px;
  margin: 0 auto;
}

.article-hero-wrap {
  margin-bottom: 35px;
}

.article-meta-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-glass);
}

.article-body h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-top: 40px;
  margin-bottom: 18px;
  border-left: 4px solid var(--gold-primary);
  padding-left: 14px;
}

.article-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-top: 26px;
  margin-bottom: 12px;
}

.article-body p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #E2DFED;
  margin-bottom: 18px;
}

/* Contextual Image Wrapper */
.context-img-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  margin: 32px 0;
}

.context-img-card img {
  border-radius: var(--radius-sm);
  width: 100%;
  height: auto;
}

/* Comparison Tables */
.table-responsive {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.casino-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  font-size: 0.92rem;
}

.casino-table th {
  background: #1C1438;
  color: var(--gold-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 2px solid var(--border-bright);
}

.casino-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-glass);
  color: #D1CCDF;
}

.casino-table tr:hover td {
  background: rgba(255, 215, 0, 0.04);
}

/* FAQ Accordion Component */
.faq-section {
  margin: 45px 0;
}

.faq-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-header {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1.05rem;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-body {
  padding: 0 22px 18px 22px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Author Attribution Box (E-E-A-T) */
.author-box {
  background: linear-gradient(135deg, rgba(28, 20, 53, 0.9) 0%, rgba(15, 10, 30, 0.95) 100%);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 45px 0 25px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (min-width: 600px) {
  .author-box {
    flex-direction: row;
    align-items: center;
  }
}

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  border: 2px solid var(--gold-primary);
  box-shadow: var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #251B42;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold-primary);
  flex-shrink: 0;
}

.author-details h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.author-title {
  color: var(--gold-primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.author-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Site Footer & Compliance Elements */
.site-footer {
  background: #07040E;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 45px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--gold-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

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

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

/* Compliance Badges (21+ Strict Zero Fake License) */
.compliance-bar {
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  padding: 24px 0;
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 46, 46, 0.15);
  border: 1.5px solid var(--accent-red);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: var(--radius-full);
}

.verified-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.partner-tag {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
