/* ==========================================================================
   EK333 CORE STYLES & LAYOUT SYSTEM
   ========================================================================== */

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

/* --------------------------------------------------------------------------
   1. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.25;
  font-weight: 700;
}

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

a:hover {
  color: var(--gold-300);
  text-decoration: underline;
}

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

/* --------------------------------------------------------------------------
   2. PROPORTIONAL CONTAINERS & SECTION RHYTHM
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  position: relative;
}

.section-lg {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}

.section-header {
  margin-bottom: var(--space-10);
  text-align: center;
}

.section-header.text-left {
  text-align: left;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-400);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--border-gold);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

.section-header.text-left .section-subtitle {
  margin: 0;
}

/* --------------------------------------------------------------------------
   3. FIRST CONTAINER CASINO BACKGROUNDS (MANDATORY REQUIREMENT)
   -------------------------------------------------------------------------- */
.hero-casino-homepage {
  background-image: 
    linear-gradient(180deg, rgba(7, 10, 18, 0.72) 0%, rgba(7, 10, 18, 0.95) 100%),
    url('/assets/images/hero-casino-bg.webp');
}

.hero-casino-category {
  background-image: 
    linear-gradient(180deg, rgba(7, 10, 18, 0.72) 0%, rgba(7, 10, 18, 0.95) 100%),
    url('/assets/images/category-hero-bg.webp');
}

.hero-casino-post {
  background-image: 
    linear-gradient(180deg, rgba(7, 10, 18, 0.72) 0%, rgba(7, 10, 18, 0.95) 100%),
    url('/assets/images/post-hero-bg.webp');
}

.hero-casino-functional {
  background-image: 
    linear-gradient(180deg, rgba(7, 10, 18, 0.72) 0%, rgba(7, 10, 18, 0.95) 100%),
    url('/assets/images/functional-hero-bg.webp');
}

/* --------------------------------------------------------------------------
   4. E-E-A-T AUTHOR & METADATA COMPONENTS
   -------------------------------------------------------------------------- */
.author-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-8);
}

.author-avatar {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  border: 2px solid var(--gold-400);
  object-fit: cover;
}

.author-info h4 {
  font-size: var(--text-base);
  margin-bottom: 2px;
}

.author-title {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.fact-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--emerald-400);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

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

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

.breadcrumbs .sep {
  color: rgba(255, 255, 255, 0.2);
}

/* Sticky Table of Contents (TOC) */
.toc-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
}

.toc-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

.toc-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.toc-list a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.toc-list a:hover {
  color: var(--gold-400);
  padding-left: var(--space-1);
}

/* Callout Alert Boxes */
.alert-box {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  margin: var(--space-6) 0;
  border-left: 4px solid;
  background: var(--bg-surface);
}

.alert-tip {
  border-color: var(--gold-400);
  background: rgba(245, 158, 11, 0.06);
}

.alert-important {
  border-color: var(--cyan-400);
  background: rgba(6, 182, 212, 0.06);
}

.alert-warning {
  border-color: var(--ruby-500);
  background: rgba(239, 68, 68, 0.06);
}

/* --------------------------------------------------------------------------
   5. MEDIA & CONTEXTUAL IMAGE CONTAINERS
   -------------------------------------------------------------------------- */
.featured-image-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-lg);
}

.featured-image-box img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.contextual-image-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  margin: var(--space-8) 0;
  box-shadow: var(--shadow-md);
}

.contextual-image-box img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   6. FILTER PILLS / TABS
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.filter-chip {
  padding: var(--space-2) var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip:hover {
  border-color: var(--border-gold);
  color: var(--gold-400);
}

.filter-chip.active {
  background: var(--gold-gradient);
  color: var(--text-dark);
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}

/* --------------------------------------------------------------------------
   7. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-3x2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 768px) {
  .nav-menu,
  .header-actions .btn-outline {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-container {
    min-height: 420px;
    padding: var(--space-12) var(--space-4);
  }
  .grid-3x2 {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .stepper-container::before {
    display: none;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}
