/* ===== CodeToolsPro — Global Styles v2 ===== */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --primary-glow: rgba(99, 102, 241, 0.15);
  --accent: #f59e0b;
  --bg: #f0f2f5;
  --bg-card: #ffffff;
  --bg-input: #f1f5f9;
  --bg-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-glow: 0 0 24px rgba(99, 102, 241, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --radius-full: 100px;
  --transition: 0.2s ease;
  --transition-slow: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  --gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
  --gradient-warm: linear-gradient(135deg, #f59e0b, #ef4444);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', 'JetBrains Mono', monospace;
}

[data-theme="dark"] {
  --bg: #0c0f1a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-input: #1e293b;
  --bg-hero: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(51, 65, 85, 0.6);
  --border-hover: #475569;
  --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.2);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.4), 0 4px 8px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 32px rgba(99, 102, 241, 0.2);
  --primary-glow: rgba(99, 102, 241, 0.25);
}

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

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

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

/* ===== Navbar ===== */
.navbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: background var(--transition), border var(--transition);
}

[data-theme="dark"] .navbar {
  background: rgba(12, 15, 26, 0.85);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.navbar-brand .logo-icon {
  width: 34px;
  height: 34px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-theme-toggle {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  font-size: 1.1rem;
  transition: all var(--transition);
}
.btn-theme-toggle:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.35);
}

.btn-home {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition);
}
.btn-home:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.35);
}

/* ===== Main Content ===== */
.main-content {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ===== Hero Section ===== */
.hero {
  text-align: center;
  padding: 4rem 1rem 2.5rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero h1 .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== Search Bar ===== */
.search-container {
  max-width: 560px;
  margin: 2rem auto 0;
  position: relative;
}

.search-container .search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-container input[type="text"] {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 3.25rem !important;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-sans);
  outline: none;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

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

.search-container input:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-md), 0 0 0 4px var(--primary-glow);
}

/* ===== Category Filter Chips ===== */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: all var(--transition);
  user-select: none;
}

.chip:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  background: var(--primary-glow);
}

.chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* ===== Tool Count Badge ===== */
.tool-count {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.tool-count span {
  color: var(--primary);
  font-weight: 700;
}

/* ===== Category Headers ===== */
.category-header {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ===== Tools Grid ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.tool-grid-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.tool-grid-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
}

.tool-grid-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.tool-grid-card:hover::before {
  opacity: 1;
}

.tool-grid-card .tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.tool-grid-card:hover .tool-icon {
  transform: scale(1.08);
}

.tool-grid-card .tool-info h3 {
  font-size: 0.95rem;
  font-weight: 650;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.tool-grid-card .tool-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ===== No Results ===== */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  display: none;
}

.no-results .no-results-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-results h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.no-results p {
  font-size: 0.9rem;
}

/* ===== Tool Page Layout ===== */
.tool-header {
  text-align: center;
  margin-bottom: 2rem;
}

.tool-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tool-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: background var(--transition), border var(--transition);
}

[data-theme="dark"] .tool-card {
  backdrop-filter: blur(12px);
}

.tool-card + .tool-card {
  margin-top: 1rem;
}

/* ===== Form Elements ===== */
textarea, input[type="text"], input[type="number"], select {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text);
  resize: vertical;
  transition: border var(--transition), box-shadow var(--transition);
  outline: none;
}

textarea:focus, input[type="text"]:focus, input[type="number"]:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

textarea {
  min-height: 140px;
  line-height: 1.5;
}

label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99,102,241,0.4);
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--border);
}

.btn-success {
  background: #10b981;
  color: white;
}

.btn-danger {
  background: #ef4444;
  color: white;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

/* ===== Utility ===== */
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.status-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  min-height: 1.5rem;
}

.status-bar .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success { background: #d1fae5; color: #065f46; }
.badge-error { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }

[data-theme="dark"] .badge-success { background: #064e3b; color: #6ee7b7; }
[data-theme="dark"] .badge-error { background: #7f1d1d; color: #fca5a5; }
[data-theme="dark"] .badge-info { background: #1e3a5f; color: #93c5fd; }

.separator {
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}

/* ===== Toast ===== */
.copy-feedback {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--primary);
  color: white;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.copy-feedback.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Options Row ===== */
.options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.option-group label {
  margin-bottom: 0;
}

.option-group select, .option-group input {
  width: auto;
  min-width: 120px;
}

/* ===== Checkbox / Toggle ===== */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.toggle-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ===== Range Slider ===== */
input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

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

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  animation: fadeInUp 0.6s ease-out;
}

.search-container {
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.category-filters {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.tool-grid-card {
  animation: fadeInUp 0.4s ease-out both;
}

/* Staggered card entrance */
.tools-grid .tool-grid-card:nth-child(1) { animation-delay: 0.05s; }
.tools-grid .tool-grid-card:nth-child(2) { animation-delay: 0.1s; }
.tools-grid .tool-grid-card:nth-child(3) { animation-delay: 0.15s; }
.tools-grid .tool-grid-card:nth-child(4) { animation-delay: 0.2s; }
.tools-grid .tool-grid-card:nth-child(5) { animation-delay: 0.25s; }
.tools-grid .tool-grid-card:nth-child(6) { animation-delay: 0.3s; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .navbar { padding: 0 1rem; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero { padding: 2.5rem 0.5rem 1.5rem; }
  .tools-grid { grid-template-columns: 1fr; }
  .main-content { padding: 1.25rem 1rem; }
  .tool-header h1 { font-size: 1.5rem; }
  .options-row { flex-direction: column; }
  .option-group select, .option-group input { width: 100%; }
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; }
  .category-filters { gap: 0.4rem; }
  .chip { font-size: 0.78rem; padding: 0.4rem 0.8rem; }
  .search-container input { font-size: 0.9rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Blog Listing ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: all var(--transition-slow);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
}

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

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

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.blog-card h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}

.blog-card-tag {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--primary-glow);
  color: var(--primary);
  align-self: flex-start;
}

/* ===== Blog Article Typography ===== */
.blog-article {
  max-width: 720px;
  margin: 0 auto;
}

.blog-article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.blog-article h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.blog-article h3 {
  font-size: 1.15rem;
  font-weight: 650;
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.blog-article p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.8;
  font-size: 1rem;
}

.blog-article ul, .blog-article ol {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  line-height: 1.8;
}

.blog-article li {
  margin-bottom: 0.4rem;
}

.blog-article a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.blog-article a:hover {
  text-decoration: underline;
}

.blog-article code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-input);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  color: var(--primary);
}

.blog-article pre {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.blog-article pre code {
  background: none;
  padding: 0;
  border: none;
  color: var(--text);
  font-size: 0.85rem;
}

.blog-article blockquote {
  border-left: 3px solid var(--primary);
  margin: 1.25rem 0;
  padding: 0.75rem 1.25rem;
  background: var(--primary-glow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.blog-article blockquote p {
  margin-bottom: 0;
  color: var(--text);
}

.blog-article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
}

/* Blog CTA */
.blog-cta {
  background: var(--primary-glow);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin: 2rem 0;
}

.blog-cta h3 {
  margin-top: 0;
  color: var(--text);
}

.blog-cta p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.blog-cta .btn-primary {
  color: white;
}

/* Navbar blog link */
.btn-blog-link {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
}

.btn-blog-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.35);
}

/* Blog hero banner */
.blog-hero-banner {
  text-align: center;
  font-size: 4rem;
  padding: 1.5rem 0 0.5rem;
  line-height: 1;
}

/* Blog fun callout boxes */
.blog-callout {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  line-height: 1.6;
}

.blog-callout-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1.4;
}

.blog-callout p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.blog-callout-info {
  background: var(--primary-glow);
  border: 1px solid var(--primary);
}

.blog-callout-warning {
  background: #fef3c7;
  border: 1px solid #f59e0b;
}

[data-theme="dark"] .blog-callout-warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
}

.blog-callout-fun {
  background: #f0fdf4;
  border: 1px solid #22c55e;
}

[data-theme="dark"] .blog-callout-fun {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
}

/* Blog TLDR box */
.blog-tldr {
  background: var(--bg-input);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.blog-tldr strong {
  color: var(--primary);
}

.blog-tldr p {
  margin-bottom: 0.5rem;
}

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

/* Blog image illustration */
.blog-illustration {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg-input);
  border-radius: var(--radius);
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}

.blog-illustration .illust-emoji {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.blog-illustration .illust-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-article h2 { font-size: 1.2rem; }
  .blog-article-meta { flex-wrap: wrap; justify-content: center; }
  .blog-hero-banner { font-size: 3rem; }
}
