/* TikAudit Custom Design System & Effects */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-dark: #0B0F17;
  --card-dark: #131B2E;
  --card-border: #1E293B;
  --accent-purple: #6366F1;
  --accent-emerald: #10B981;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-dark);
  color: #F8FAFC;
  overflow-x: hidden;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Glassmorphism */
.glass-panel {
  background: rgba(19, 27, 46, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel:hover {
  border-color: rgba(99, 102, 241, 0.35);
}

/* Glow Badges */
.glow-emerald {
  box-shadow: 0 0 25px -5px rgba(16, 185, 129, 0.35);
}

.glow-purple {
  box-shadow: 0 0 25px -5px rgba(99, 102, 241, 0.35);
}

.glow-amber {
  box-shadow: 0 0 25px -5px rgba(245, 158, 11, 0.35);
}

/* Custom Scrollbar & Smooth Anchors */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

[id^="section"], #executiveSummaryCard {
  scroll-margin-top: 76px;
}

/* Quick Navigation Pill Bar (Ultra User-Friendly Floating Bar) */
#quickNavBar {
  background: rgba(13, 20, 36, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(99, 102, 241, 0.22);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  -webkit-overflow-scrolling: touch;
}

.quick-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  color: #94A3B8;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}

.quick-nav-pill:hover {
  color: #FFFFFF;
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.18);
}

.quick-nav-pill:active {
  transform: translateY(0) scale(0.97);
}

.quick-nav-pill.active {
  color: #FFFFFF;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(168, 85, 247, 0.3));
  border-color: rgba(129, 140, 248, 0.7);
  box-shadow: 0 0 14px -2px rgba(99, 102, 241, 0.45);
  font-weight: 700;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0B0F17;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Heatmap Grid animations */
.heatmap-cell {
  transition: all 0.2s ease;
}
.heatmap-cell:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

/* Radial Gauge animations */
.gauge-circle {
  transition: stroke-dashoffset 1s ease-in-out;
}

/* Print Stylesheet for PDF Export */
@media print {
  @page {
    size: A4;
    margin: 10mm;
  }
  body {
    background-color: #0B0F17 !important;
    color: #F8FAFC !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  header, section, #initialState, #loadingState, #errorState, #reportActionRow, #quickNavBar, #pwaInstallBtn, footer {
    display: none !important;
  }
  #auditResults {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }
  .glass-panel {
    background: rgba(19, 27, 46, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: none !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
}

/* AI Strategy Polish */
#sectionAiStrategy {
  background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
              rgba(15, 23, 42, 0.75);
}

.ai-card-glow {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.ai-card-glow:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.15);
}
