/* ==========================================================================
   Latin Learning Game - Custom Styles for Astra Child Theme
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --ll-primary: #2563eb;
  --ll-primary-dark: #1d4ed8;
  --ll-primary-light: #dbeafe;
  --ll-secondary: #f59e0b;
  --ll-accent: #10b981;
  --ll-dark: #0f172a;
  --ll-gray-900: #1e293b;
  --ll-gray-800: #334155;
  --ll-gray-700: #475569;
  --ll-gray-500: #64748b;
  --ll-gray-300: #cbd5e1;
  --ll-gray-200: #e2e8f0;
  --ll-gray-100: #f1f5f9;
  --ll-gray-50: #f8fafc;
  --ll-white: #ffffff;
  --ll-radius: 12px;
  --ll-radius-sm: 8px;
  --ll-radius-lg: 16px;
  --ll-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --ll-shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 10px 24px rgba(0,0,0,0.06);
  --ll-shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 20px 48px rgba(0,0,0,0.06);
  --ll-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --ll-font: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* --------------------------------------------------------------------------
   Astra Theme Overrides - Global
   -------------------------------------------------------------------------- */
body,
body.flavor-flavor,
.ast-container,
.site-content .ast-container {
  font-family: var(--ll-font);
}

body {
  background-color: var(--ll-gray-50);
  color: var(--ll-gray-800);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hide default page title "Startseite" on homepage */
.home .entry-header,
.home .page-header,
.home .ast-archive-description,
body.page-template-default.home .entry-title,
body.home .entry-title {
  display: none !important;
}

/* Hide the "Seiten-Navigation" sidebar/widget that lists pages */
.widget_pages,
.widget_nav_menu,
#secondary,
.sidebar-main,
aside.widget-area {
  display: none !important;
}

/* Hide Astra default footer credit text */
.ast-footer-copyright,
.ast-small-footer,
.site-footer .site-info,
.ast-small-footer-section,
.ast-footer-overlay,
p.ast-footer-copyright,
.site-below-footer-wrap,
.ast-small-footer-wrap {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Astra Header - Sticky with Blur
   -------------------------------------------------------------------------- */
.site-header,
.ast-primary-header-bar,
.main-header-bar,
#masthead {
  position: sticky !important;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ll-gray-200);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: var(--ll-transition);
}

/* --------------------------------------------------------------------------
   Astra Primary Navigation - Pill-style Links
   -------------------------------------------------------------------------- */
.main-header-menu > .menu-item > a,
.ast-header-sections-navigation .menu-item > a,
.main-navigation .menu-item > a,
.ast-nav-menu .menu-item > a,
nav.site-navigation .menu-item > a {
  font-family: var(--ll-font) !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  color: var(--ll-gray-700) !important;
  padding: 6px 16px !important;
  border-radius: 999px !important;
  transition: var(--ll-transition) !important;
  margin: 0 2px !important;
}

.main-header-menu > .menu-item > a:hover,
.ast-header-sections-navigation .menu-item > a:hover,
.main-navigation .menu-item > a:hover,
.ast-nav-menu .menu-item > a:hover,
nav.site-navigation .menu-item > a:hover {
  background: var(--ll-primary-light) !important;
  color: var(--ll-primary) !important;
}

.main-header-menu > .current-menu-item > a,
.ast-nav-menu .current-menu-item > a,
nav.site-navigation .current-menu-item > a {
  background: var(--ll-primary) !important;
  color: var(--ll-white) !important;
}

/* --------------------------------------------------------------------------
   Content Area Reset
   -------------------------------------------------------------------------- */
.site-content .ast-container,
.site-content .ast-builder-grid-row {
  max-width: 100%;
  padding: 0;
}

.entry-content {
  margin: 0;
  padding: 0;
}

.home .site-content .ast-container,
.home .entry-content {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.ll-hero {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #a855f7 100%);
  color: var(--ll-white);
  text-align: center;
  padding: 64px 24px 72px;
  position: relative;
  overflow: hidden;
}

.ll-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--ll-gray-50);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.ll-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.12) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255,255,255,0.08) 0%, transparent 40%);
  pointer-events: none;
}

.ll-hero > * {
  position: relative;
  z-index: 1;
}

.ll-hero img {
  max-width: 120px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

.ll-hero h1 {
  font-family: var(--ll-font);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  color: var(--ll-white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.ll-hero p {
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 32px;
  opacity: 0.92;
  color: rgba(255,255,255,0.92);
}

.ll-hero-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.ll-hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.ll-hero-stats span {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.9rem;
  opacity: 0.85;
}

.ll-hero-stats strong {
  font-size: 1.6rem;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.ll-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--ll-font);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: var(--ll-transition);
  line-height: 1.4;
}

.ll-btn:hover {
  transform: translateY(-2px);
  text-decoration: none !important;
}

.ll-btn-white {
  background: var(--ll-white);
  color: var(--ll-primary);
  border-color: var(--ll-white);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.ll-btn-white:hover {
  background: var(--ll-gray-50);
  color: var(--ll-primary-dark);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.ll-btn-outline {
  background: transparent;
  color: var(--ll-white);
  border-color: rgba(255,255,255,0.5);
}

.ll-btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--ll-white);
  color: var(--ll-white);
}

.ll-btn-primary {
  background: var(--ll-primary);
  color: var(--ll-white);
  border-color: var(--ll-primary);
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}

.ll-btn-primary:hover {
  background: var(--ll-primary-dark);
  border-color: var(--ll-primary-dark);
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}

.ll-btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.ll-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px;
  position: relative;
  z-index: 1;
}

.ll-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.ll-section-header h2 {
  font-family: var(--ll-font);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ll-gray-900);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.ll-section-header p {
  font-size: 1.1rem;
  color: var(--ll-gray-500);
  max-width: 550px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Category Cards Grid
   -------------------------------------------------------------------------- */
.ll-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.ll-category-card {
  background: var(--ll-white);
  border-radius: var(--ll-radius-lg);
  box-shadow: var(--ll-shadow);
  padding: 28px 24px 20px;
  position: relative;
  overflow: hidden;
  transition: var(--ll-transition);
  border-top: 4px solid var(--ll-gray-300);
  display: flex;
  flex-direction: column;
}

.ll-category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ll-shadow-lg);
}

/* Colored top borders per category */
.ll-category-card.konj {
  border-top-color: var(--ll-primary);
}

.ll-category-card.konj::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ll-primary);
}

.ll-category-card.perf {
  border-top-color: var(--ll-accent);
}

.ll-category-card.perf::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ll-accent);
}

.ll-category-card.dekl {
  border-top-color: var(--ll-secondary);
}

.ll-category-card.dekl::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ll-secondary);
}

.ll-category-card.extra {
  border-top-color: #a855f7;
}

.ll-category-card.extra::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #a855f7;
}

/* --------------------------------------------------------------------------
   Category Card Inner Elements
   -------------------------------------------------------------------------- */
.ll-cat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--ll-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.ll-category-card.konj .ll-cat-icon {
  background: var(--ll-primary-light);
}

.ll-category-card.perf .ll-cat-icon {
  background: #d1fae5;
}

.ll-category-card.dekl .ll-cat-icon {
  background: #fef3c7;
}

.ll-category-card.extra .ll-cat-icon {
  background: #f3e8ff;
}

.ll-category-card h3 {
  font-family: var(--ll-font);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ll-gray-900);
  margin: 0 0 8px;
}

.ll-category-card > p {
  font-size: 0.9rem;
  color: var(--ll-gray-500);
  line-height: 1.6;
  margin: 0 0 16px;
  flex-grow: 1;
}

/* --------------------------------------------------------------------------
   Game Tags
   -------------------------------------------------------------------------- */
.ll-game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.ll-game-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 999px;
  background: var(--ll-gray-100);
  color: var(--ll-gray-700);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Category Card Footer
   -------------------------------------------------------------------------- */
.ll-cat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--ll-gray-200);
  margin-top: auto;
}

.ll-game-count {
  font-size: 0.85rem;
  color: var(--ll-gray-500);
  font-weight: 500;
}

.ll-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--ll-primary);
  color: var(--ll-white);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: var(--ll-transition);
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
  white-space: nowrap;
}

.ll-play-btn:hover {
  background: var(--ll-primary-dark);
  transform: translateY(-1px);
  color: var(--ll-white);
  box-shadow: 0 4px 14px rgba(37,99,235,0.4);
}

/* --------------------------------------------------------------------------
   Games Grid & Game Cards
   -------------------------------------------------------------------------- */
.ll-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.ll-game-card {
  background: var(--ll-white);
  border-radius: var(--ll-radius);
  box-shadow: var(--ll-shadow);
  overflow: hidden;
  transition: var(--ll-transition);
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
}

.ll-game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ll-shadow-md);
}

.ll-game-card-head {
  padding: 20px 20px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ll-game-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--ll-radius-sm);
  background: var(--ll-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.ll-game-card-head h4 {
  font-family: var(--ll-font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ll-gray-900);
  margin: 0 0 4px;
}

.ll-game-card-head p {
  font-size: 0.8rem;
  color: var(--ll-gray-500);
  margin: 0;
  line-height: 1.5;
}

.ll-game-card-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--ll-gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   Difficulty Dots
   -------------------------------------------------------------------------- */
.ll-difficulty {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ll-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ll-gray-200);
  transition: var(--ll-transition);
}

.ll-dot.on {
  background: var(--ll-accent);
}

/* --------------------------------------------------------------------------
   Leaderboard Styles
   -------------------------------------------------------------------------- */
.ll-lb-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
}

.ll-tabs {
  display: flex;
  gap: 4px;
  background: var(--ll-gray-100);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.ll-tab {
  flex: 1;
  padding: 10px 20px;
  font-family: var(--ll-font);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--ll-gray-500);
  cursor: pointer;
  transition: var(--ll-transition);
  text-align: center;
}

.ll-tab:hover {
  color: var(--ll-gray-700);
}

.ll-tab.active {
  background: var(--ll-white);
  color: var(--ll-primary);
  box-shadow: var(--ll-shadow);
}

/* Podium */
.ll-podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 48px;
  padding: 0 20px;
}

.ll-pod {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ll-pod-av {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ll-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 10px;
  border: 3px solid var(--ll-gray-300);
}

.ll-pod:nth-child(2) .ll-pod-av {
  width: 80px;
  height: 80px;
  font-size: 2rem;
  border-color: var(--ll-secondary);
}

.ll-pod-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ll-gray-900);
  margin-bottom: 4px;
}

.ll-pod-score {
  font-size: 0.8rem;
  color: var(--ll-gray-500);
}

.ll-pod-bar {
  width: 80px;
  border-radius: var(--ll-radius-sm) var(--ll-radius-sm) 0 0;
  margin-top: 10px;
}

.ll-pod:nth-child(1) .ll-pod-bar {
  height: 80px;
  background: var(--ll-gray-200);
}

.ll-pod:nth-child(2) .ll-pod-bar {
  height: 110px;
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
}

.ll-pod:nth-child(3) .ll-pod-bar {
  height: 60px;
  background: var(--ll-gray-200);
}

/* Leaderboard Table */
.ll-lb-table {
  width: 100%;
  background: var(--ll-white);
  border-radius: var(--ll-radius-lg);
  box-shadow: var(--ll-shadow);
  overflow: hidden;
}

.ll-lb-table table {
  width: 100%;
  border-collapse: collapse;
}

.ll-lb-table th {
  font-family: var(--ll-font);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ll-gray-500);
  padding: 14px 20px;
  text-align: left;
  background: var(--ll-gray-50);
  border-bottom: 1px solid var(--ll-gray-200);
}

.ll-lb-table td {
  font-size: 0.9rem;
  padding: 14px 20px;
  border-bottom: 1px solid var(--ll-gray-100);
  color: var(--ll-gray-700);
}

.ll-lb-table tr:last-child td {
  border-bottom: none;
}

.ll-lb-table .rank {
  font-weight: 700;
  color: var(--ll-gray-900);
  width: 50px;
}

.ll-lb-table .score {
  font-weight: 700;
  color: var(--ll-primary);
}

/* Dynamic Leaderboard Styles (from ll-rangliste.js) */
.ll-rk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  background: #f1f5f9;
  color: #64748b;
}
.ll-rk.t1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; }
.ll-rk.t2 { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #fff; }
.ll-rk.t3 { background: linear-gradient(135deg, #d97706, #b45309); color: #fff; }

.ll-usr {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ll-av {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.ll-uname {
  font-weight: 600;
  color: #0f172a;
}

.ll-pts {
  font-weight: 700;
  color: var(--ll-primary);
}

.ll-pbar {
  display: inline-block;
  width: 80px;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  vertical-align: middle;
  margin-right: 6px;
}

.ll-pfill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border-radius: 4px;
  transition: width 0.6s ease;
}

.ll-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.ll-badge.tiro { background: #f0fdf4; color: #166534; }
.ll-badge.disc { background: #eff6ff; color: #1e40af; }
.ll-badge.fort { background: #fefce8; color: #854d0e; }
.ll-badge.mag  { background: #fdf2f8; color: #9d174d; }

/* Podium */
.ll-pod {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ll-pod-av {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}
.ll-pod.g .ll-pod-av { background: linear-gradient(135deg, #fbbf24, #f59e0b); width: 72px; height: 72px; font-size: 1.2rem; }
.ll-pod.s .ll-pod-av { background: linear-gradient(135deg, #cbd5e1, #94a3b8); }
.ll-pod.b .ll-pod-av { background: linear-gradient(135deg, #d97706, #b45309); }
.ll-pod-crown { position: absolute; top: -18px; font-size: 1.3rem; }
.ll-pod-name { font-weight: 600; font-size: 0.9rem; color: #0f172a; text-align: center; }
.ll-pod-pts { font-size: 0.8rem; color: #64748b; }
.ll-pod-bar {
  width: 40px;
  padding: 4px 0;
  text-align: center;
  border-radius: 6px 6px 0 0;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}
.ll-pod.g .ll-pod-bar { background: #f59e0b; height: 80px; display: flex; align-items: flex-start; justify-content: center; padding-top: 8px; }
.ll-pod.s .ll-pod-bar { background: #94a3b8; height: 56px; display: flex; align-items: flex-start; justify-content: center; padding-top: 8px; }
.ll-pod.b .ll-pod-bar { background: #b45309; height: 40px; display: flex; align-items: flex-start; justify-content: center; padding-top: 8px; }

/* --------------------------------------------------------------------------
   Stats Grid
   -------------------------------------------------------------------------- */
.ll-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.ll-stat {
  background: var(--ll-white);
  border-radius: var(--ll-radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--ll-shadow);
  transition: var(--ll-transition);
}

.ll-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--ll-shadow-md);
}

.ll-stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ll-primary);
  margin-bottom: 4px;
}

.ll-stat span {
  font-size: 0.85rem;
  color: var(--ll-gray-500);
}

/* --------------------------------------------------------------------------
   Legal Pages
   -------------------------------------------------------------------------- */
.ll-legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}

.ll-legal h1 {
  font-family: var(--ll-font);
  font-size: 2rem;
  font-weight: 800;
  color: var(--ll-gray-900);
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

.ll-legal h2 {
  font-family: var(--ll-font);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ll-gray-900);
  margin: 40px 0 16px;
}

.ll-legal h3 {
  font-family: var(--ll-font);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ll-gray-800);
  margin: 28px 0 12px;
}

.ll-legal p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ll-gray-700);
  margin: 0 0 16px;
}

.ll-legal ul {
  padding-left: 24px;
  margin: 0 0 16px;
}

.ll-legal li {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ll-gray-700);
  margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.ll-footer {
  background: var(--ll-dark);
  color: var(--ll-gray-300);
  padding: 60px 24px 0;
  margin-top: 40px;
}

.ll-footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.ll-footer-col h4 {
  font-family: var(--ll-font);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ll-white);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ll-footer-col a {
  display: block;
  color: var(--ll-gray-300);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 4px 0;
  transition: var(--ll-transition);
}

.ll-footer-col a:hover {
  color: var(--ll-white);
  padding-left: 4px;
}

.ll-footer-col p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ll-gray-500);
  margin: 0;
}

.ll-footer-bottom {
  border-top: 1px solid var(--ll-gray-800);
  padding: 20px 0;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.ll-footer-copy {
  font-size: 0.8rem;
  color: var(--ll-gray-500);
}

.ll-footer-legal {
  display: flex;
  gap: 20px;
}

.ll-footer-legal a {
  font-size: 0.8rem;
  color: var(--ll-gray-500);
  text-decoration: none;
  transition: var(--ll-transition);
}

.ll-footer-legal a:hover {
  color: var(--ll-white);
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .ll-hero {
    padding: 60px 20px 90px;
    clip-path: ellipse(200% 100% at 50% 0%);
  }

  .ll-hero h1 {
    font-size: 2rem;
  }

  .ll-hero p {
    font-size: 1rem;
  }

  .ll-hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .ll-hero-stats {
    gap: 24px;
  }

  .ll-hero-stats strong {
    font-size: 1.3rem;
  }

  .ll-section {
    padding: 48px 16px;
  }

  .ll-section-header h2 {
    font-size: 1.6rem;
  }

  .ll-categories {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ll-games-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ll-podium {
    gap: 8px;
  }

  .ll-pod-bar {
    width: 60px;
  }

  .ll-tabs {
    flex-wrap: wrap;
    border-radius: var(--ll-radius);
  }

  .ll-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ll-footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .ll-footer-legal {
    justify-content: center;
  }

  .ll-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .ll-lb-table th,
  .ll-lb-table td {
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .ll-btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .ll-hero {
    padding: 48px 16px 80px;
  }

  .ll-hero h1 {
    font-size: 1.65rem;
  }

  .ll-hero img {
    max-width: 90px;
  }

  .ll-hero-stats {
    flex-direction: column;
    gap: 12px;
  }

  .ll-hero-stats span {
    flex-direction: row;
    gap: 8px;
  }

  .ll-hero-stats strong {
    font-size: 1.1rem;
  }

  .ll-section-header h2 {
    font-size: 1.35rem;
  }

  .ll-category-card {
    padding: 20px 18px 16px;
  }

  .ll-stats {
    grid-template-columns: 1fr;
  }

  .ll-legal {
    padding: 40px 16px;
  }

  .ll-legal h1 {
    font-size: 1.5rem;
  }

  .ll-legal h2 {
    font-size: 1.15rem;
  }

  .ll-podium {
    flex-direction: column;
    align-items: center;
  }

  .ll-pod-bar {
    display: none;
  }

  .ll-footer {
    padding: 40px 16px 0;
  }
}

/* --------------------------------------------------------------------------
   Books Section
   -------------------------------------------------------------------------- */
.ll-books-bg {
  background: linear-gradient(180deg, var(--ll-white) 0%, #f0f4ff 50%, var(--ll-white) 100%);
}
.ll-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}
.ll-book-card {
  background: var(--ll-white);
  border-radius: var(--ll-radius-lg);
  box-shadow: var(--ll-shadow);
  border: 1px solid var(--ll-gray-200);
  overflow: hidden;
  transition: var(--ll-transition);
  display: flex;
  flex-direction: column;
}
.ll-book-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ll-shadow-lg);
}
@media (hover: none) {
  .ll-book-card:hover { transform: none; }
}

.ll-book-cover {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 40%, #1e3a5f 100%);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ll-book-cover-img {
  padding: 0;
  overflow: hidden;
  background: none;
}
.ll-book-cover-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 280px;
  transition: transform 0.3s ease;
}
.ll-book-card:hover .ll-book-cover-img img {
  transform: scale(1.03);
}
.ll-book-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--ll-secondary);
  color: var(--ll-white);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
}

.ll-book-info {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.ll-book-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ll-dark);
  margin-bottom: 4px;
  line-height: 1.3;
}
.ll-book-info .ll-book-sub {
  font-size: 0.85rem;
  color: var(--ll-gray-500);
  margin-bottom: 12px;
  line-height: 1.4;
}
.ll-book-info .ll-book-desc {
  font-size: 0.85rem;
  color: var(--ll-gray-700);
  margin-bottom: 16px;
  flex-grow: 1;
  line-height: 1.5;
}
.ll-book-info .ll-book-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.ll-book-tag-k {
  background: #fff7ed;
  color: #c2410c;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
}
.ll-book-tag-s {
  background: #ede9fe;
  color: #7c3aed;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
}
.ll-book-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ll-amazon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: var(--ll-transition);
  text-decoration: none;
}
.ll-amazon-btn-primary {
  background: #ff9900;
  color: #0f172a;
}
.ll-amazon-btn-primary:hover {
  background: #e68a00;
  transform: translateY(-1px);
  color: #0f172a;
}
.ll-amazon-btn-secondary {
  background: var(--ll-gray-100);
  color: var(--ll-gray-700);
}
.ll-amazon-btn-secondary:hover {
  background: var(--ll-gray-200);
}
.ll-books-footer {
  text-align: center;
  margin-top: 32px;
}
@media (max-width: 480px) {
  .ll-book-cover { min-height: 160px; padding: 24px 16px; }
  .ll-book-cover-img { padding: 0; }
  .ll-book-cover-img img { min-height: 220px; }
  .ll-book-info { padding: 20px 16px; }
  .ll-book-cta { flex-direction: column; }
  .ll-amazon-btn { justify-content: center; }
}
