/* ============================================
   Skill Auditor — Design System
   Dark Glassmorphism Theme
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* --- Design Tokens --- */
:root {
  /* Background */
  --bg-primary: #06060f;
  --bg-secondary: #0c0c1d;
  --bg-card: rgba(15, 15, 35, 0.65);
  --bg-card-hover: rgba(20, 20, 45, 0.75);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-border: rgba(255, 255, 255, 0.06);
  --bg-input: rgba(10, 10, 25, 0.8);

  /* Accent */
  --accent-primary: #6366f1;
  --accent-primary-glow: rgba(99, 102, 241, 0.25);
  --accent-secondary: #818cf8;

  /* Semantic */
  --color-success: #22c55e;
  --color-success-bg: rgba(34, 197, 94, 0.1);
  --color-success-border: rgba(34, 197, 94, 0.25);
  --color-warning: #f59e0b;
  --color-warning-bg: rgba(245, 158, 11, 0.1);
  --color-warning-border: rgba(245, 158, 11, 0.25);
  --color-error: #ef4444;
  --color-error-bg: rgba(239, 68, 68, 0.1);
  --color-error-border: rgba(239, 68, 68, 0.25);
  --color-critical: #dc2626;
  --color-critical-bg: rgba(220, 38, 38, 0.1);
  --color-info: #3b82f6;
  --color-info-bg: rgba(59, 130, 246, 0.1);
  --color-info-border: rgba(59, 130, 246, 0.25);

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --text-accent: #a5b4fc;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px var(--accent-primary-glow);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 10%, rgba(99, 102, 241, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 500px 350px at 80% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 50% 50%, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.8; transform: scale(1); }
}

/* --- Layout --- */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

/* --- Header --- */
.app-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  animation: fadeUp 0.8s var(--ease-out) both;
}

.app-header__top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  position: relative;
}

.app-header__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent-primary), #8b5cf6);
  font-size: 28px;
  box-shadow: var(--shadow-glow);
  animation: float 6s ease-in-out infinite;
}

/* --- Language Switcher --- */
.lang-switcher {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 2px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 2px;
  border: 1px solid rgba(255,255,255,0.06);
}

.lang-btn {
  padding: 4px 10px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  line-height: 1.4;
}

.lang-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.lang-btn.active {
  color: var(--text-primary);
  background: var(--accent-primary);
}

.app-header__title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
}

.app-header__subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 500px;
  margin: 0 auto;
}

/* --- Glass Card --- */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
  border-color: rgba(255,255,255,0.1);
}

.card + .card {
  margin-top: var(--space-lg);
}

/* --- Section Title --- */
.section-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.section-title__icon {
  font-size: 1rem;
}

/* --- Tab Switcher --- */
.tab-group {
  display: flex;
  gap: var(--space-xs);
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

.tab-btn.active {
  color: var(--text-primary);
  background: var(--accent-primary);
  box-shadow: 0 2px 8px var(--accent-primary-glow);
}

.tab-btn__icon {
  font-size: 1.1rem;
}

/* --- Input Panels --- */
.input-panel {
  display: none;
}

.input-panel.active {
  display: block;
  animation: fadeIn 0.3s var(--ease-out);
}

/* Drop Zone */
.drop-zone {
  position: relative;
  border: 2px dashed rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  overflow: hidden;
}

.drop-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--accent-primary-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.05);
}

.drop-zone:hover::before,
.drop-zone.dragover::before {
  opacity: 1;
}

.drop-zone__icon {
  position: relative;
  z-index: 1;
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  display: block;
  animation: float 4s ease-in-out infinite;
}

.drop-zone__text {
  position: relative;
  z-index: 1;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.drop-zone__text strong {
  color: var(--accent-secondary);
  font-weight: 600;
}

.drop-zone__hint {
  position: relative;
  z-index: 1;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: var(--space-sm);
}

/* GitHub URL Input */
.url-input-group {
  display: flex;
  gap: var(--space-sm);
}

.url-input {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-input);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  outline: none;
  transition: all var(--duration-fast) var(--ease-out);
}

.url-input::placeholder {
  color: var(--text-muted);
}

.url-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-glow);
}

.url-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
  padding-left: var(--space-xs);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #8b5cf6);
  color: white;
  box-shadow: 0 2px 12px var(--accent-primary-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-primary-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-scan {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  margin-top: var(--space-lg);
  font-size: 1rem;
  border-radius: var(--radius-md);
}

/* --- Loading State --- */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6, 6, 15, 0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-lg);
}

.loading-overlay.active {
  display: flex;
  animation: fadeIn 0.3s var(--ease-out);
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  animation: pulse 1.5s ease-in-out infinite;
}

/* --- Results Section --- */
.results-section {
  display: none;
  animation: fadeUp 0.6s var(--ease-out) both;
}

.results-section.active {
  display: block;
}

/* Score Overview */
.score-overview {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.score-ring-container {
  flex-shrink: 0;
  position: relative;
  width: 140px;
  height: 140px;
}

.score-ring-container canvas {
  width: 100%;
  height: 100%;
}

.score-ring__label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-ring__value {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.score-ring__text {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-xs);
}

.score-grade {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-top: var(--space-sm);
}

.score-grade.grade-a { background: var(--color-success-bg); color: var(--color-success); border: 1px solid var(--color-success-border); }
.score-grade.grade-b { background: var(--color-info-bg); color: var(--color-info); border: 1px solid var(--color-info-border); }
.score-grade.grade-c { background: var(--color-warning-bg); color: var(--color-warning); border: 1px solid var(--color-warning-border); }
.score-grade.grade-d { background: var(--color-error-bg); color: var(--color-error); border: 1px solid var(--color-error-border); }

/* Dimension Bars */
.dimension-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.dim-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.dim-bar__label {
  width: 80px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.dim-bar__track {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.dim-bar__fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s var(--ease-out);
  width: 0%;
}

.dim-bar__fill.severity-success { background: linear-gradient(90deg, #16a34a, #22c55e); }
.dim-bar__fill.severity-warning { background: linear-gradient(90deg, #d97706, #f59e0b); }
.dim-bar__fill.severity-error { background: linear-gradient(90deg, #dc2626, #ef4444); }
.dim-bar__fill.severity-info { background: linear-gradient(90deg, #2563eb, #3b82f6); }

.dim-bar__count {
  width: 50px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-align: right;
}

/* --- Findings List --- */
.findings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.findings-filters {
  display: flex;
  gap: var(--space-xs);
}

.filter-pill {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.filter-pill:hover { border-color: rgba(255,255,255,0.15); color: var(--text-primary); }
.filter-pill.active { background: var(--accent-primary); border-color: var(--accent-primary); color: white; }
.filter-pill[data-severity="critical"].active { background: var(--color-critical); border-color: var(--color-critical); }
.filter-pill[data-severity="error"].active { background: var(--color-error); border-color: var(--color-error); }
.filter-pill[data-severity="warning"].active { background: var(--color-warning); border-color: var(--color-warning); }
.filter-pill[data-severity="info"].active { background: var(--color-info); border-color: var(--color-info); }

.finding-item {
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
  background: var(--bg-glass);
  transition: all var(--duration-fast) var(--ease-out);
  animation: fadeIn 0.3s var(--ease-out) both;
  cursor: pointer;
}

.finding-item:hover {
  border-color: rgba(255,255,255,0.1);
  background: var(--bg-card-hover);
}

.finding-item__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.finding-item__badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.badge-critical { background: var(--color-critical-bg); color: var(--color-critical); border: 1px solid rgba(220,38,38,0.3); }
.badge-error { background: var(--color-error-bg); color: var(--color-error); border: 1px solid rgba(239,68,68,0.3); }
.badge-warning { background: var(--color-warning-bg); color: var(--color-warning); border: 1px solid rgba(245,158,11,0.3); }
.badge-info { background: var(--color-info-bg); color: var(--color-info); border: 1px solid rgba(59,130,246,0.3); }

.finding-item__rule {
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-accent);
}

.finding-item__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.finding-item__chevron {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: transform var(--duration-fast) var(--ease-out);
}

.finding-item.expanded .finding-item__chevron {
  transform: rotate(90deg);
}

.finding-item__body {
  display: none;
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.finding-item.expanded .finding-item__body {
  display: block;
  animation: fadeIn 0.2s var(--ease-out);
}

.finding-item__location {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  font-family: var(--font-mono);
}

.finding-item__snippet {
  background: var(--bg-input);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-error);
  overflow-x: auto;
  white-space: pre;
  line-height: 1.8;
}

.finding-item__message {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: var(--space-sm);
  line-height: 1.6;
}

.empty-findings {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--text-muted);
}

.empty-findings__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.empty-findings__text {
  font-size: 0.95rem;
}

/* --- File Tree --- */
.file-tree {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
}

.file-tree__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast) var(--ease-out);
  cursor: default;
}

.file-tree__item:hover {
  background: rgba(255,255,255,0.03);
}

.file-tree__item--dir {
  color: var(--text-accent);
  font-weight: 500;
  cursor: pointer;
}

.file-tree__item--file {
  color: var(--text-secondary);
}

.file-tree__indent {
  display: inline-block;
  width: 20px;
  flex-shrink: 0;
}

.file-tree__icon {
  font-size: 0.9rem;
  flex-shrink: 0;
}

.file-tree__name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-tree__status {
  flex-shrink: 0;
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
}

.status-ok { color: var(--color-success); }
.status-issues { color: var(--color-error); background: var(--color-error-bg); }

/* --- Skill Info Bar --- */
.skill-info-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.skill-info-bar__name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
}

.skill-info-bar__desc {
  color: var(--text-secondary);
  font-size: 0.82rem;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill-info-bar__source {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--accent-primary-glow);
  color: var(--accent-secondary);
  font-weight: 600;
  flex-shrink: 0;
}

/* --- Summary Stats --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.stat-card {
  text-align: center;
  padding: var(--space-md);
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
}

.stat-card:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.stat-card__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.stat-card__label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-xs);
}

/* --- Export Bar --- */
.export-bar {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.btn-export {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  backdrop-filter: blur(8px);
}

.btn-export:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
  background: var(--accent-primary-glow);
  transform: translateY(-1px);
  box-shadow: 0 2px 12px var(--accent-primary-glow);
}

.btn-export:active {
  transform: translateY(0);
}

/* --- Error Banner --- */
.error-banner {
  display: none;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-error-bg);
  border: 1px solid var(--color-error-border);
  border-radius: var(--radius-md);
  color: var(--color-error);
  font-size: 0.875rem;
  margin-top: var(--space-md);
}

.error-banner.active {
  display: flex;
  animation: shake 0.4s var(--ease-out);
}

.error-banner__icon { font-size: 1.2rem; flex-shrink: 0; align-self: flex-start; margin-top: 2px; }
.error-banner__text { flex: 1; white-space: pre-line; line-height: 1.6; }
.error-banner__close {
  background: none;
  border: none;
  color: var(--color-error);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

@keyframes slideDown {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 500px; }
}

/* Stagger children animations */
.results-section.active .card {
  animation: fadeUp 0.5s var(--ease-out) both;
}

.results-section.active .card:nth-child(1) { animation-delay: 0.05s; }
.results-section.active .card:nth-child(2) { animation-delay: 0.15s; }
.results-section.active .card:nth-child(3) { animation-delay: 0.25s; }
.results-section.active .card:nth-child(4) { animation-delay: 0.35s; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .app-container {
    padding: var(--space-md);
  }

  .app-header__title {
    font-size: 1.6rem;
  }

  .score-overview {
    flex-direction: column;
    text-align: center;
  }

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

  .url-input-group {
    flex-direction: column;
  }

  .dim-bar__label {
    width: 60px;
    font-size: 0.72rem;
  }

  .skill-info-bar {
    flex-direction: column;
    text-align: center;
  }

  .skill-info-bar__desc {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .card {
    padding: var(--space-md);
  }

  .findings-filters {
    flex-wrap: wrap;
  }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.2);
}

/* --- Footer --- */
.app-footer {
  text-align: center;
  padding: var(--space-2xl) 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.app-footer a {
  color: var(--text-accent);
  text-decoration: none;
}

.app-footer a:hover {
  text-decoration: underline;
}
