/* Examined Content Design System v1.0 */
/* Built with precision. Dark-first aesthetic. */

:root {
  /* === COLOR SYSTEM === */
  
  /* Primary - Purple */
  --purple-50: #f5f3ff;
  --purple-100: #ede9fe;
  --purple-200: #ddd6fe;
  --purple-300: #c4b5fd;
  --purple-400: #a78bfa;
  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  --purple-700: #6d28d9;
  --purple-800: #5b21b6;
  --purple-900: #4c1d95;
  
  /* Primary - Orange */
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-200: #fed7aa;
  --orange-300: #fdba74;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --orange-800: #9a3412;
  --orange-900: #7c2d12;
  
  /* Brand Aliases */
  --accent: var(--purple-600);
  --accent-hover: var(--purple-500);
  --highlight: var(--orange-500);
  --highlight-hover: var(--orange-600);
  
  /* Dark Mode Palette */
  --bg-deep: #080808;
  --bg: #080808;
  --surface: #111111;
  --surface-elevated: #1a1a1a;
  --border: #222222;
  --border-light: #333333;
  
  --text-primary: #e0e0e0;
  --text-secondary: #888888;
  --text-muted: #555555;
  
  /* Semantic */
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --error: #ef4444;
  --error-light: #fee2e2;
  --info: #3b82f6;
  --info-light: #dbeafe;
  
  /* === TYPOGRAPHY === */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  
  /* Type Scale */
  --text-xs: 0.6875rem;
  --text-sm: 0.75rem;
  --text-base: 0.875rem;
  --text-lg: 1rem;
  --text-xl: 1.125rem;
  --text-2xl: 1.25rem;
  --text-3xl: 1.5rem;
  --text-4xl: 2rem;
  --text-5xl: 2.5rem;
  
  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
  
  /* Font Weights */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* === SPACING (8px base) === */
  --space-0: 0;
  --space-1: 0.125rem;  /* 2px */
  --space-2: 0.25rem;   /* 4px */
  --space-3: 0.5rem;    /* 8px */
  --space-4: 0.75rem;   /* 12px */
  --space-5: 1rem;      /* 16px */
  --space-6: 1.5rem;    /* 24px */
  --space-7: 2rem;      /* 32px */
  --space-8: 2.5rem;    /* 40px */
  --space-9: 3rem;      /* 48px */
  --space-10: 4rem;     /* 64px */
  
  /* === RADIUS === */
  --radius-none: 0;
  --radius-sm: 0.125rem;
  --radius: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;
  
  /* === SHADOWS === */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* === TRANSITIONS === */
  --duration-fast: 75ms;
  --duration: 150ms;
  --duration-slow: 300ms;
  --duration-slower: 500ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* === Z-INDEX === */
  --z-dropdown: 1000;
  --z-sticky: 1100;
  --z-modal: 1200;
  --z-popover: 1300;
  --z-tooltip: 1400;
}

/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

@media (min-width: 768px) {
  html { font-size: 15px; }
}

@media (min-width: 1024px) {
  html { font-size: 16px; }
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: var(--leading-normal);
  min-height: 100vh;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 92, 255, 0.08), transparent),
    radial-gradient(circle at 100% 100%, rgba(249, 115, 22, 0.03), transparent 40%);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-6);
}

h2 {
  font-size: var(--text-3xl);
  margin: var(--space-9) 0 var(--space-5);
}

h3 {
  font-size: var(--text-2xl);
  margin: var(--space-7) 0 var(--space-4);
}

h4 {
  font-size: var(--text-xl);
  margin: var(--space-6) 0 var(--space-3);
}

p {
  margin-bottom: var(--space-5);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

a {
  color: var(--purple-400);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
  border-bottom: 1px solid transparent;
}

a:hover {
  color: var(--purple-300);
  border-bottom-color: var(--purple-400);
}

strong, b { font-weight: var(--font-semibold); }
em, i { font-style: italic; }

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: 64rem; /* 1024px */
  margin: 0 auto;
  padding: 0 var(--space-5);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-8);
  }
}

/* === 12-COLUMN GRID === */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
}

@media (min-width: 768px) {
  .grid { grid-template-columns: repeat(8, 1fr); }
}

@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(12, 1fr); }
}

/* Column utility classes */
.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

@media (min-width: 768px) {
  .md\:col-1 { grid-column: span 1; }
  .md\:col-2 { grid-column: span 2; }
  .md\:col-3 { grid-column: span 3; }
  .md\:col-4 { grid-column: span 4; }
  .md\:col-6 { grid-column: span 6; }
  .md\:col-8 { grid-column: span 8; }
}

@media (min-width: 1024px) {
  .lg\:col-1 { grid-column: span 1; }
  .lg\:col-2 { grid-column: span 2; }
  .lg\:col-3 { grid-column: span 3; }
  .lg\:col-4 { grid-column: span 4; }
  .lg\:col-6 { grid-column: span 6; }
  .lg\:col-8 { grid-column: span 8; }
}

/* === COMPONENTS === */

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  line-height: 1;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  border: none;
  min-height: 44px;
  min-width: 44px;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--purple-400);
}

.btn-primary {
  background: var(--purple-600);
  color: white;
}

.btn-primary:hover {
  background: var(--purple-500);
  transform: translateY(-1px);
}

.btn-primary:active {
  background: var(--purple-700);
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--purple-400);
  border: 1px solid var(--purple-400);
}

.btn-secondary:hover {
  background: rgba(124, 92, 255, 0.1);
  border-color: var(--purple-300);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--surface-elevated);
  color: var(--text-primary);
}

.btn-danger {
  background: var(--error);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  min-height: 32px;
}

.btn-lg {
  padding: var(--space-5) var(--space-8);
  font-size: var(--text-lg);
  min-height: 56px;
}

/* Input */
.input {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: all var(--duration) var(--ease);
}

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

.input:hover {
  background: var(--surface-elevated);
  border-color: var(--border-light);
}

.input:focus {
  outline: none;
  border-color: var(--purple-600);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.input-error {
  border-color: var(--error);
}

.input-error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Label */
.label {
  display: block;
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.label-required::after {
  content: '*';
  color: var(--error);
  margin-left: var(--space-1);
}

/* Helper / Error Text */
.helper {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-2);
}

.error-text {
  font-size: var(--text-sm);
  color: var(--error);
  margin-top: var(--space-2);
}

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  transition: all var(--duration) var(--ease);
}

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

.card-elevated {
  box-shadow: var(--shadow-md);
}

.card-interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(124, 92, 255, 0.1);
  border-color: var(--purple-600);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-default {
  background: var(--surface-elevated);
  color: var(--text-secondary);
}

.badge-primary {
  background: rgba(124, 92, 255, 0.2);
  color: var(--purple-400);
}

.badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning);
}

.badge-error {
  background: rgba(239, 68, 68, 0.2);
  color: var(--error);
}

/* Toggle */
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--duration) var(--ease);
  border: none;
}

.toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform var(--duration) var(--ease);
}

.toggle[aria-checked="true"] {
  background: var(--purple-600);
}

.toggle[aria-checked="true"]::after {
  transform: translateX(20px);
}

/* Progress */
.progress {
  height: var(--space-2);
  background: var(--surface-elevated);
  border-radius: var(--radius);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--purple-600), var(--orange-500));
  border-radius: var(--radius);
  transition: width var(--duration-slow) var(--ease);
}

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--surface-elevated) 25%, var(--border) 50%, var(--surface-elevated) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-6) 0;
}

.divider-vertical {
  width: 1px;
  height: var(--space-6);
  background: var(--border);
  margin: 0 var(--space-4);
  display: inline-block;
  vertical-align: middle;
}

/* Alert */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid;
}

.alert-info {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--info);
  color: var(--info);
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--success);
  color: var(--success);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--warning);
  color: var(--warning);
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--error);
  color: var(--error);
}

/* Tabs */
.tab-list {
  display: flex;
  gap: var(--space-2);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.tab {
  padding: var(--space-4) var(--space-5);
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  font-size: var(--text-base);
}

.tab:hover {
  color: var(--text-primary);
}

.tab[aria-selected="true"] {
  color: var(--purple-400);
  border-bottom-color: var(--purple-400);
}

/* Table */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table th {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table tr:hover td {
  background: var(--surface);
}

/* Avatar */
.avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
}

.avatar-sm { width: 1.5rem; height: 1.5rem; font-size: var(--text-xs); }
.avatar-lg { width: 3rem; height: 3rem; font-size: var(--text-lg); }
.avatar-xl { width: 4rem; height: 4rem; font-size: var(--text-xl); }

/* === NAVIGATION === */

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: var(--space-5) 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
}

.logo {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.logo-accent {
  color: var(--purple-500);
}

.nav-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}

.nav-links a {
  font-size: var(--text-base);
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease);
  position: relative;
  padding: var(--space-2) 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--purple-500);
  transition: width var(--duration) var(--ease);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--purple-400);
}

/* Sidebar */
.sidebar {
  width: 16rem;
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  transition: all var(--duration) var(--ease);
}

.sidebar-link:hover {
  background: var(--surface-elevated);
  color: var(--text-primary);
}

.sidebar-link.active {
  background: rgba(124, 92, 255, 0.1);
  color: var(--purple-400);
}

/* === SECTIONS === */

/* Hero */
.hero {
  padding: var(--space-10) 0 var(--space-8);
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--purple-400) 50%, var(--orange-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-5);
}

.hero .subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 40rem;
  margin: 0 auto var(--space-8);
}

/* Vital Signs */
.vital-signs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  margin: var(--space-8) 0;
}

@media (min-width: 640px) {
  .vital-signs {
    grid-template-columns: repeat(4, 1fr);
  }
}

.vital-item {
  text-align: center;
  padding: var(--space-4);
}

.vital-item .value {
  font-family: var(--font-body);
  font-size: var(--text-2xl);
  color: var(--purple-400);
  display: block;
  margin-bottom: var(--space-1);
}

.vital-item .label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

/* Posts Grid */
.posts-grid {
  display: grid;
  gap: var(--space-6);
  margin: var(--space-8) 0;
}

@media (min-width: 768px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple-500), transparent);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.post-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

.post-card .date {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-card h2 {
  font-size: var(--text-xl);
  margin: var(--space-3) 0;
}

.post-card h2 a {
  color: var(--text-primary);
}

.post-card h2 a:hover {
  color: var(--purple-400);
}

.post-card .excerpt {
  color: var(--text-secondary);
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}

/* Applets Grid */
.applets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
  margin: var(--space-8) 0;
}

.applet-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  text-align: center;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}

.applet-card:hover {
  border-color: var(--purple-500);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(124, 92, 255, 0.15);
}

.applet-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  display: block;
}

.applet-card h3 {
  font-size: var(--text-lg);
  margin: var(--space-2) 0;
}

.applet-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}

/* === CONTENT STYLES === */

/* Poem */
.poem {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: var(--leading-loose);
  color: var(--text-secondary);
  padding: var(--space-6);
  border-left: 2px solid var(--purple-500);
  margin: var(--space-6) 0;
  font-style: italic;
}

.poem p {
  margin-bottom: var(--space-4);
}

.poem p:last-child {
  margin-bottom: 0;
}

/* Blockquote */
blockquote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--text-primary);
  padding: var(--space-6);
  margin: var(--space-6) 0;
  border-left: 3px solid var(--purple-500);
  background: var(--surface);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

/* Code */
code {
  font-family: var(--font-body);
  font-size: 0.9em;
  background: var(--surface-elevated);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  color: var(--purple-400);
}

pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  overflow-x: auto;
  margin: var(--space-5) 0;
}

pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-10) 0;
  margin-top: var(--space-10);
  text-align: center;
}

.footer p {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.animate-fade-in {
  animation: fadeIn var(--duration-slow) var(--ease) forwards;
}

.animate-slide-in {
  animation: slideIn var(--duration-slow) var(--ease) forwards;
}

/* Staggered animations */
.post-card, .applet-card {
  opacity: 0;
  animation: fadeIn var(--duration-slow) var(--ease) forwards;
}

.post-card:nth-child(1), .applet-card:nth-child(1) { animation-delay: 0ms; }
.post-card:nth-child(2), .applet-card:nth-child(2) { animation-delay: 75ms; }
.post-card:nth-child(3), .applet-card:nth-child(3) { animation-delay: 150ms; }
.post-card:nth-child(4), .applet-card:nth-child(4) { animation-delay: 225ms; }
.post-card:nth-child(5), .applet-card:nth-child(5) { animation-delay: 300ms; }
.post-card:nth-child(6), .applet-card:nth-child(6) { animation-delay: 375ms; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
  }
  
  .hero {
    padding: var(--space-8) 0 var(--space-6);
  }
  
  h1 {
    font-size: var(--text-3xl);
  }
  
  .card, .post-card, .applet-card {
    padding: var(--space-5);
  }
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}

/* === SELECTION === */
::selection {
  background: var(--purple-600);
  color: white;
}

/* === FOCUS VISIBLE === */
:focus-visible {
  outline: 2px solid var(--purple-400);
  outline-offset: 2px;
}

/* Hide focus for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}