/* ═══════════════════════════════════════════════════════════════
   BlogVerdict — Design System
   Bootstrap 5 handles layout/grid — this file adds brand styling
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Design Tokens ─────────────────────────────────────────── */
:root {
  --primary:        #6366F1;
  --primary-hover:  #4F46E5;
  --primary-light:  #EEF2FF;
  --primary-50:     #EEF2FF;
  --primary-100:    #E0E7FF;
  --primary-600:    #4F46E5;
  --primary-700:    #4338CA;

  --accent:         #F59E0B;
  --accent-hover:   #D97706;
  --accent-light:   #FFFBEB;

  --success:        #10B981;
  --success-light:  #ECFDF5;
  --danger:         #EF4444;
  --danger-light:   #FEF2F2;
  --warning:        #F59E0B;
  --info:           #3B82F6;

  --text:           #0F172A;
  --text-secondary: #475569;
  --text-muted:     #94A3B8;
  --bg:             #F8FAFC;
  --surface:        #FFFFFF;
  --border:         #E2E8F0;
  --border-light:   #F1F5F9;

  --radius-sm:   0.375rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-2xl:  1.5rem;
  --radius-full: 9999px;

  --shadow-xs:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl:  0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);

  --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --header-h: 72px;
}

/* ── 2. Base / Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--primary-hover); }

img { max-width: 100%; height: auto; }

::selection {
  background: var(--primary-light);
  color: var(--primary-700);
}

/* ── 3. Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.025em;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

.text-gradient {
  background: linear-gradient(135deg, var(--primary), #A855F7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 4. Header / Navigation ───────────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.92);
  height: var(--header-h);
}

.site-header .navbar {
  height: var(--header-h);
}

.site-header .nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.search-box {
  position: relative;
  max-width: 320px;
  width: 100%;
}
.search-box input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  font-size: 0.875rem;
  width: 100%;
  transition: all var(--transition);
}
.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  outline: none;
  background: var(--surface);
}
.search-box .search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  overflow: hidden;
}
.autocomplete-dropdown .list-group-item {
  border: none;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  transition: background var(--transition);
}
.autocomplete-dropdown .list-group-item:hover {
  background: var(--primary-light);
}

/* ── 5. Buttons ───────────────────────────────────────────────── */
.btn {
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  padding: 0.5rem 1.25rem;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  background: transparent;
}
.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
}
.btn-ghost:hover {
  background: var(--bg);
  color: var(--text);
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── 6. Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-slow);
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-100);
  transform: translateY(-2px);
}

.card-body {
  padding: 1.25rem;
}

.card-footer {
  background: var(--bg);
  border-top: 1px solid var(--border-light);
  padding: 0.75rem 1.25rem;
}

.card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.card-title a {
  color: var(--text);
}
.card-title a:hover {
  color: var(--primary);
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.card-link:hover { color: inherit; }

.card-cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary-light), #E0E7FF);
}

.card-cover-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #DDD6FE 50%, #FBCFE8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 2.5rem;
}

/* ── 7. Hero Section ──────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 30%, #DDD6FE 60%, #FBCFE8 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ── 8. Badges ────────────────────────────────────────────────── */
.badge {
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.25em 0.625em;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary-hover);
}

.badge-accent {
  background: var(--accent-light);
  color: var(--accent-hover);
}

.badge-success {
  background: var(--success-light);
  color: #059669;
}

.badge-danger {
  background: var(--danger-light);
  color: #DC2626;
}

.badge-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.badge-type {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
}

/* ── 9. Star Rating ───────────────────────────────────────────── */
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--border);
  font-size: 1rem;
}
.stars .bi-star-fill,
.stars .star-filled {
  color: var(--accent);
}
.stars .bi-star-half {
  color: var(--accent);
}

.rating-large {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
}
.rating-large small {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Interactive star rating for forms */
.star-input {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}
.star-input input { display: none; }
.star-input label {
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--border);
  transition: color var(--transition);
}
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
  color: var(--accent);
}

/* ── 10. Forms ────────────────────────────────────────────────── */
.form-control, .form-select {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  transition: all var(--transition);
  background: var(--surface);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.form-control::placeholder {
  color: var(--text-muted);
}

.form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.form-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* ── 11. Section Styles ───────────────────────────────────────── */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

.section-divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}

/* ── 12. Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--text);
  color: #CBD5E1;
  padding: 3.5rem 0 2rem;
  margin-top: auto;
}
.site-footer a {
  color: #CBD5E1;
  transition: color var(--transition);
}
.site-footer a:hover {
  color: #fff;
}
.footer-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}
.footer-heading {
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links a {
  font-size: 0.875rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  font-size: 0.8125rem;
  color: #64748B;
}

/* ── 13. Empty States ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}
.empty-state-icon {
  font-size: 3.5rem;
  color: var(--primary-100);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-light);
}
.empty-state-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.empty-state-text {
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto 1.5rem;
}

/* ── 14. Stats Cards ──────────────────────────────────────────── */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-align: center;
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.04em;
}
.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* ── 15. Review Card ──────────────────────────────────────────── */
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color var(--transition);
}
.review-card:hover {
  border-color: var(--primary-100);
}
.review-card .review-rating {
  margin-bottom: 0.75rem;
}
.review-card .review-content {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}
.review-card .review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0.75rem 0;
}
.pros-cons .pros, .pros-cons .cons {
  font-size: 0.875rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
}
.pros-cons .pros {
  background: var(--success-light);
  color: #065F46;
  border-left: 3px solid var(--success);
}
.pros-cons .cons {
  background: var(--danger-light);
  color: #991B1B;
  border-left: 3px solid var(--danger);
}

/* ── 16. Trending / Feature Cards ─────────────────────────────── */
.trending-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text);
}
.trending-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--text);
  transform: translateX(4px);
}
.trending-number {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
  min-width: 28px;
}

/* ── 17. Feature Grid ─────────────────────────────────────────── */
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.feature-icon-primary {
  background: var(--primary-light);
  color: var(--primary);
}
.feature-icon-accent {
  background: var(--accent-light);
  color: var(--accent);
}
.feature-icon-success {
  background: var(--success-light);
  color: var(--success);
}

/* ── 18. Page Header ──────────────────────────────────────────── */
.page-header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 2rem;
  background: var(--surface);
}
.page-header h1 {
  margin-bottom: 0.25rem;
}
.page-header p {
  color: var(--text-secondary);
  margin: 0;
}

/* ── 19. HTMX Loading States ─────────────────────────────────── */
.htmx-indicator {
  display: none;
}
.htmx-request .htmx-indicator {
  display: inline-block;
}
.htmx-request.htmx-indicator {
  display: inline-block;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, var(--border) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-wave 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-wave {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── 20. Editor ───────────────────────────────────────────────── */
.editor-container {
  max-width: 800px;
  margin: 0 auto;
}

.editor-toolbar {
  display: flex;
  gap: 4px;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--bg);
  flex-wrap: wrap;
}
.editor-toolbar button {
  padding: 0.375rem 0.5rem;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: all var(--transition);
}
.editor-toolbar button:hover {
  background: var(--surface);
  color: var(--text);
}
.editor-toolbar button.active {
  background: var(--primary-light);
  color: var(--primary);
}

.editor-content {
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  min-height: 400px;
  padding: 1.5rem;
  background: var(--surface);
  font-size: 1.0625rem;
  line-height: 1.8;
}
.editor-content:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.editor-content h1, .editor-content h2, .editor-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
.editor-content p { margin-bottom: 1rem; }
.editor-content ul, .editor-content ol { padding-left: 1.5rem; }
.editor-content blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
  margin-left: 0;
  color: var(--text-secondary);
  font-style: italic;
}
.editor-content img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 1rem 0;
}
.editor-content code {
  background: var(--bg);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  font-size: 0.875em;
  font-family: var(--font-mono);
}
.editor-content pre {
  background: #1E293B;
  color: #E2E8F0;
  padding: 1rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
}
.editor-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* ── 21. Admin / Dashboard ────────────────────────────────────── */
.admin-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  min-height: calc(100vh - var(--header-h));
  padding: 1.5rem 0;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1.25rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.admin-nav-link:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.admin-nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}

.queue-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  transition: all var(--transition);
}
.queue-item:hover {
  border-color: var(--primary-100);
  box-shadow: var(--shadow-sm);
}

/* ── 22. Toast / Alert ────────────────────────────────────────── */
.alert-modern {
  border-radius: var(--radius-lg);
  border: none;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.alert-modern-success {
  background: var(--success-light);
  color: #065F46;
}
.alert-modern-danger {
  background: var(--danger-light);
  color: #991B1B;
}
.alert-modern-info {
  background: var(--primary-light);
  color: var(--primary-700);
}

/* ── 23. Dev Banner ───────────────────────────────────────────── */
.dev-banner {
  background: linear-gradient(90deg, var(--accent), #F97316);
  color: #fff;
  text-align: center;
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
}
.dev-banner a {
  color: #fff;
  text-decoration: underline;
  margin-left: 0.5rem;
}

/* ── 24. Tag Cloud ────────────────────────────────────────────── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag-item {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  text-decoration: none;
}
.tag-item:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* ── 25. Post Article ─────────────────────────────────────────── */
.article-header {
  text-align: center;
  padding: 3rem 0 2rem;
  max-width: 720px;
  margin: 0 auto;
}
.article-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.article-meta .divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}
.article-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text-secondary);
}
.article-body p { margin-bottom: 1.5rem; }

/* ── 26. Pagination ───────────────────────────────────────────── */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

/* ── 27. User Avatar ──────────────────────────────────────────── */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}
.avatar-lg {
  width: 48px;
  height: 48px;
  font-size: 1.125rem;
}

/* ── 28. Dropdown ─────────────────────────────────────────────── */
.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  min-width: 200px;
}
.dropdown-item {
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
}
.dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.dropdown-divider {
  border-color: var(--border-light);
  margin: 0.25rem 0;
}

/* ── 29. Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 3rem 0; }
  .hero-title { font-size: 2.25rem; }
  .hero-subtitle { font-size: 1.0625rem; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.375rem; }
  .section { padding: 2.5rem 0; }
  .pros-cons { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 1.75rem; }
}

@media (max-width: 576px) {
  .hero-title { font-size: 1.875rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .card-body { padding: 1rem; }
}

/* ── 30. Animations ───────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeIn 0.3s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.slide-up {
  animation: slideUp 0.4s ease-out;
}

/* HTMX swap animations */
.htmx-added {
  animation: fadeIn 0.3s ease-out;
}

/* ── 31. Utilities ────────────────────────────────────────────── */
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-primary-light { background: var(--primary-light) !important; }
.bg-accent-light { background: var(--accent-light) !important; }
.border-primary { border-color: var(--primary) !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.fw-800 { font-weight: 800 !important; }
.ls-tight { letter-spacing: -0.025em !important; }
.max-w-lg { max-width: 720px; }
.max-w-xl { max-width: 960px; }
