/* ==========================================================================
   Claude Code Changelog Observatory - Modern Design System (CSS)
   Aesthetic: Anthropic Obsidian & Terracotta Glow, Glassmorphism, Micro-interactions
   ========================================================================== */

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

:root {
  /* Brand Colors - Warm Terracotta & Anthropic Amber */
  --brand-primary: #d97706;
  --brand-primary-hover: #b45309;
  --brand-accent: #ea580c;
  --brand-gradient: linear-gradient(135deg, #d97706 0%, #ea580c 50%, #e11d48 100%);
  --brand-glow: rgba(217, 119, 6, 0.25);
  
  /* Category Colors */
  --cat-added: #10b981;
  --cat-added-bg: rgba(16, 185, 129, 0.12);
  --cat-fixed: #3b82f6;
  --cat-fixed-bg: rgba(59, 130, 246, 0.12);
  --cat-improved: #8b5cf6;
  --cat-improved-bg: rgba(139, 92, 246, 0.12);
  --cat-changed: #f59e0b;
  --cat-changed-bg: rgba(245, 158, 11, 0.12);
  --cat-removed: #ef4444;
  --cat-removed-bg: rgba(239, 68, 68, 0.12);

  /* Tag Colors */
  --tag-agent: #8b5cf6;
  --tag-mcp: #06b6d4;
  --tag-security: #f43f5e;
  --tag-models: #d97706;
  --tag-ide: #3b82f6;
  --tag-perf: #10b981;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Elevation Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 25px var(--brand-glow);

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

  /* Fallback Light Scheme variables */
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --card-bg: #ffffff;
  --code-bg: #f1f5f9;
  --code-text: #0f172a;
  --header-bg: rgba(248, 250, 252, 0.85);
}

/* Dark Theme (Default) */
[data-theme="dark"],
:root:not([data-theme="light"]) {
  color-scheme: dark;
  --bg-base: #09090b;
  --bg-surface: #121217;
  --bg-surface-elevated: #18181f;
  --bg-glass: rgba(18, 18, 23, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --card-bg: rgba(24, 24, 31, 0.6);
  --code-bg: rgba(0, 0, 0, 0.4);
  --code-text: #38bdf8;
  --header-bg: rgba(9, 9, 11, 0.82);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
}

[data-theme="light"] {
  color-scheme: light;
  --bg-base: #fafaf9;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f4f4f5;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border-subtle: #e4e4e7;
  --border-strong: #d4d4d8;
  --text-main: #18181b;
  --text-muted: #71717a;
  --text-dim: #a1a1aa;
  --card-bg: #ffffff;
  --code-bg: #f4f4f5;
  --code-text: #0284c7;
  --header-bg: rgba(250, 250, 249, 0.85);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(ellipse at 20% -10%, rgba(217, 119, 6, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(234, 88, 12, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-primary);
}

/* Container */
.container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
  transition: background var(--transition-normal);
}

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

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--brand-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px var(--brand-glow);
  flex-shrink: 0;
}

.logo-text h1 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  background: var(--cat-added-bg);
  color: var(--cat-added);
  border-radius: var(--radius-full);
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.logo-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sync-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 2px 8px var(--brand-glow);
}
.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: var(--bg-surface);
  border-color: var(--border-strong);
  color: var(--text-main);
}
.btn-outline:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--brand-primary);
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-icon:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
}

/* Tab Navigation Bar */
.tab-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.75rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  position: relative;
}

.tab-btn:hover {
  color: var(--text-main);
  background: var(--bg-surface);
}

.tab-btn.active {
  color: var(--brand-primary);
  background: var(--bg-surface-elevated);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -0.8rem;
  left: 0.5rem;
  right: 0.5rem;
  height: 2px;
  background: var(--brand-primary);
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Hero KPI Cards
   ========================================================================== */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.stat-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--brand-gradient);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.stat-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.stat-icon {
  font-size: 1.2rem;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-trend {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

/* ==========================================================================
   Section Views & Layouts
   ========================================================================== */
.view-section {
  display: none;
  animation: fadeIn 0.25s ease-out forwards;
}

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

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

.section-header {
  margin-bottom: 1.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 800px;
}

/* Grid Layouts */
.charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 992px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
}

.chart-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.chart-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
}

.chart-badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

.chart-container {
  position: relative;
  width: 100%;
  height: 320px;
}

/* ==========================================================================
   Strategic Pillars (Potentiel Claude Code)
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.pillar-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.pillar-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 20px var(--brand-glow);
}

.pillar-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.pillar-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.pillar-badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--cat-improved-bg);
  color: var(--cat-improved);
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.pillar-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

.pillar-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.pillar-metric {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--brand-primary);
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pillar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.pillar-list li {
  font-size: 0.82rem;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pillar-list li::before {
  content: '▸';
  color: var(--brand-primary);
  font-weight: bold;
}

/* ==========================================================================
   Game-Changers (Hall of Fame)
   ========================================================================== */
.gamechangers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.gamechanger-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.gamechanger-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.gamechanger-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.version-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--brand-gradient);
  color: #fff;
}

.date-text {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.gamechanger-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.gamechanger-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.gamechanger-quote {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.85rem;
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--brand-primary);
  margin-top: auto;
  line-height: 1.4;
  word-break: break-word;
}

/* ==========================================================================
   Changelog Version Explorer & Search
   ========================================================================== */
.explorer-controls {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-row {
  display: flex;
  gap: 0.75rem;
}

.search-box {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.6rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
  transition: all var(--transition-fast);
}

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

.filter-tags-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-right: 0.35rem;
}

.filter-chip {
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
}

.filter-chip.active {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

/* Results Info & Counter */
.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Version List Accordion */
.versions-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.version-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.version-card:hover {
  border-color: var(--border-strong);
}

.version-header {
  padding: 1.15rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  background: var(--bg-surface);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-fast);
}

.version-header:hover {
  background: var(--bg-surface-elevated);
}

.version-card.open .version-header {
  border-bottom-color: var(--border-subtle);
}

.version-title-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.version-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
}

.version-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.version-counts {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pill-count {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}
.pill-count.added { background: var(--cat-added-bg); color: var(--cat-added); }
.pill-count.fixed { background: var(--cat-fixed-bg); color: var(--cat-fixed); }
.pill-count.improved { background: var(--cat-improved-bg); color: var(--cat-improved); }

.toggle-arrow {
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: transform var(--transition-normal);
}

.version-card.open .toggle-arrow {
  transform: rotate(180deg);
}

.version-body {
  padding: 1.25rem 1.5rem;
  display: none;
  background: var(--card-bg);
}

.version-card.open .version-body {
  display: block;
}

.change-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  line-height: 1.5;
}

.change-item:last-child {
  border-bottom: none;
}

.action-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.action-badge.Added { background: var(--cat-added-bg); color: var(--cat-added); }
.action-badge.Fixed { background: var(--cat-fixed-bg); color: var(--cat-fixed); }
.action-badge.Improved { background: var(--cat-improved-bg); color: var(--cat-improved); }
.action-badge.Changed { background: var(--cat-changed-bg); color: var(--cat-changed); }
.action-badge.Removed { background: var(--cat-removed-bg); color: var(--cat-removed); }
.action-badge.Other { background: var(--bg-surface-elevated); color: var(--text-dim); }

.change-content {
  flex: 1;
  font-size: 0.86rem;
  color: var(--text-main);
}

.change-scope {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-right: 0.4rem;
}

.change-tags {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.mini-tag {
  font-size: 0.65rem;
  padding: 0.05rem 0.4rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
}

.impact-star {
  color: #f59e0b;
  font-size: 0.75rem;
  margin-left: 0.3rem;
}

/* Analyse locale par modèle de langage */
.ia-analyse {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 0.35rem;
  font-size: 0.85rem;
}
.ia-resume { color: var(--text-dim); }
.ia-impact {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.05rem 0.4rem;
  border-radius: 4px;
  border: 1px solid currentColor;
}
.ia-majeur { color: #f59e0b; }
.ia-notable { color: #3b82f6; }
.ia-mineur { color: var(--text-dim); }

/* Pagination / Load More */
.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* ==========================================================================
   Version Comparator (Diff View)
   ========================================================================== */
.comparator-box {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.comparator-selectors {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.select-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-width: 200px;
}

.select-group label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.custom-select {
  padding: 0.65rem 0.85rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}

.custom-select:focus {
  border-color: var(--brand-primary);
}

/* ==========================================================================
   Daily Automation Hub
   ========================================================================== */
.automation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
}

.automation-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.automation-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.automation-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.code-snippet {
  background: var(--code-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--code-text);
  overflow-x: auto;
  position: relative;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideInRight 0.25s ease-out;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.success { border-left: 4px solid var(--cat-added); }
.toast.error { border-left: 4px solid var(--cat-removed); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.site-footer a {
  color: var(--brand-primary);
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .stat-value {
    font-size: 1.75rem;
  }
  .pillars-grid, .gamechangers-grid, .automation-grid {
    grid-template-columns: 1fr;
  }
}
