/* =============================================
   MICRO-TOOLS CSS
   ============================================= */

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

:root {
  --bg: #0c0f14;
  --surface: #151921;
  --surface-2: #1c2230;
  --border: #2a3142;
  --border-focus: #4a7cff;
  --text: #e4e8f1;
  --text-muted: #8891a5;
  --text-dim: #5a6378;
  --accent: #4a7cff;
  --accent-glow: rgba(74, 124, 255, 0.15);
  --accent-soft: rgba(74, 124, 255, 0.08);
  --success: #34d399;
  --success-glow: rgba(52, 211, 153, 0.12);
  --warning: #fbbf24;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Light Theme */
[data-theme="light"] {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --border: #e0e4ea;
  --border-focus: #4a7cff;
  --text: #1a1f2e;
  --text-muted: #5a6378;
  --text-dim: #8891a5;
  --accent: #3b6de6;
  --accent-glow: rgba(59, 109, 230, 0.15);
  --accent-soft: rgba(59, 109, 230, 0.08);
  --success: #22b07d;
  --success-glow: rgba(34, 176, 125, 0.12);
  --warning: #e5a820;
}

[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 109, 230, 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(34, 176, 125, 0.04), transparent);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(74, 124, 255, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(52, 211, 153, 0.04), transparent);
  pointer-events: none;
  z-index: 0;
}

.page { position: relative; z-index: 1; }
.container { max-width: 840px; margin: 0 auto; padding: 0 20px; }

/* === NAV === */
.nav {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.nav-brand svg { flex-shrink: 0; }
.nav-right { display: flex; align-items: center; gap: 12px; }

.lang-select {
  appearance: none;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 28px 6px 10px;
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238891a5' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color 0.2s;
}
.lang-select:hover { border-color: var(--text-muted); }

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.back-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.back-link:hover { color: var(--text); }

/* === HERO (Homepage) === */
.hero {
  text-align: center;
  padding: 60px 0 48px;
}
.hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(74, 124, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  animation: float 3s ease-in-out infinite;
}
.hero-icon svg { color: var(--accent); }

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

.hero h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 28px;
}
.hero-stat { text-align: center; }
.hero-stat-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}
.hero-stat-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* === SEARCH === */
.search-wrap {
  max-width: 480px;
  margin: 32px auto 0;
  position: relative;
}
.search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}
.search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px 12px 42px;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input::placeholder { color: var(--text-dim); }
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* === CATEGORIES === */
.categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.cat-tag {
  padding: 5px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.cat-tag:hover, .cat-tag.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* === TOOL HEADER === */
.tool-header { text-align: center; margin-bottom: 36px; }
.tool-header h1 {
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.tool-header p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* === CALCULATOR CARD === */
.calc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  animation: slideUp 0.5s ease-out;
}
.calc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

/* === FORM === */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
@media (max-width: 540px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 5px; }

.field-header { display: flex; align-items: center; gap: 6px; }
.field-header label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.field-info { position: relative; display: inline-flex; }
.field-info-icon {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--text-dim);
  cursor: help;
  transition: border-color 0.2s, color 0.2s;
  user-select: none;
}
.field-info-icon:hover { border-color: var(--accent); color: var(--accent); }
.field-info .tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  width: 240px;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.field-info .tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--border);
}
.field-info:hover .tooltip { display: block; }

.input-wrap { position: relative; display: flex; align-items: center; }

.input-wrap input,
.input-wrap select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.input-wrap input:focus,
.input-wrap select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.input-wrap input::placeholder { color: var(--text-muted); opacity: 0.4; }

.input-unit {
  position: absolute;
  right: 14px;
  font-size: 12px;
  color: var(--text-dim);
  pointer-events: none;
  font-family: var(--font);
}
.input-unit.currency-before {
  right: auto;
  left: 14px;
}
.input-wrap input[type="number"] { padding-right: 60px; }
.input-wrap:has(.currency-before) input[type="number"] {
  padding-left: 36px;
  padding-right: 14px;
}

.input-wrap select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238891a5' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* === CALCULATE BUTTON === */
.calc-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.calc-btn:hover {
  background: #5d8aff;
  box-shadow: 0 4px 24px rgba(74, 124, 255, 0.3);
  transform: translateY(-1px);
}
.calc-btn:active { transform: translateY(0); }

/* === RESULTS === */
.results {
  display: none;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.results.show { display: block; animation: fadeIn 0.3s ease-out; }

.results-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--success);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.results-label::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.result-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  text-align: center;
  animation: slideUp 0.4s ease-out both;
}
.result-item:nth-child(1) { animation-delay: 0.05s; border-color: rgba(52, 211, 153, 0.3); background: var(--success-glow); }
.result-item:nth-child(2) { animation-delay: 0.1s; }
.result-item:nth-child(3) { animation-delay: 0.15s; }

.result-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}
.result-item:first-child .result-value { color: var(--success); }

.result-name { font-size: 12px; color: var(--text-muted); letter-spacing: 0.02em; margin-bottom: 6px; }
.result-desc { font-size: 11px; color: var(--text-dim); line-height: 1.5; }

/* === TOOLS SECTION === */
.tools-section { padding: 40px 0; }
.tools-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.tools-section-header h2,
.tools-section h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tools-count {
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

/* Tool cards (homepage) */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: slideUp 0.4s ease-out both;
}
.tool-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.tool-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tool-card-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-card-icon svg { width: 18px; height: 18px; }

.tool-card-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.tool-card-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}
.tool-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  width: fit-content;
}

/* category colors */
.cat-calculator .tool-card-icon { background: rgba(74, 124, 255, 0.12); color: var(--accent); }
.cat-calculator .tool-card-badge { background: rgba(74, 124, 255, 0.1); color: var(--accent); }
.cat-comparison .tool-card-icon { background: rgba(168, 85, 247, 0.12); color: #a855f7; }
.cat-comparison .tool-card-badge { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.cat-lookup .tool-card-icon { background: rgba(251, 191, 36, 0.12); color: var(--warning); }
.cat-lookup .tool-card-badge { background: rgba(251, 191, 36, 0.1); color: var(--warning); }
.cat-guide .tool-card-icon { background: rgba(52, 211, 153, 0.12); color: var(--success); }
.cat-guide .tool-card-badge { background: rgba(52, 211, 153, 0.1); color: var(--success); }

/* Tool links (tool page) */
.tool-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.tool-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.tool-link .tool-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-link .tool-icon svg { color: var(--accent); }
.tool-link.current {
  border-color: var(--accent);
  background: var(--accent-soft);
  pointer-events: none;
}
.tool-link.current::after {
  content: '✓';
  margin-left: auto;
  color: var(--accent);
  font-size: 12px;
}

/* === AD SLOT === */
.ad-slot {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin: 32px 0;
  color: var(--text-dim);
  font-size: 13px;
}

/* === SEO CONTENT === */
.seo-content,
.seo-section { margin: 40px 0; }
.seo-content h2,
.seo-section h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.seo-content h3,
.seo-section h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin: 28px 0 12px; color: var(--text); }
.seo-content p,
.seo-section p { color: var(--text-muted); font-size: 15px; line-height: 1.8; margin-bottom: 12px; }

.seo-grid-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 16px 0;
}
.seo-grid {
  display: grid;
  font-size: 14px;
}
.seo-grid-header {
  display: grid;
  grid-template-columns: minmax(120px, 30%) 1fr;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.seo-grid-header .seo-grid-cell {
  padding: 10px 14px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.seo-grid-row {
  display: grid;
  grid-template-columns: minmax(120px, 30%) 1fr;
  border-bottom: 1px solid var(--border);
}
.seo-grid-row:last-child { border-bottom: none; }
.seo-grid-cell {
  padding: 10px 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.seo-grid-label {
  color: var(--text);
  font-weight: 500;
}

/* Responsive: stack on mobile */
@media (max-width: 540px) {
  .seo-grid-header { display: none; }
  .seo-grid-row {
    grid-template-columns: 1fr;
    padding: 12px 0;
  }
  .seo-grid-row .seo-grid-cell {
    padding: 4px 14px;
  }
  .seo-grid-label {
    font-size: 13px;
    color: var(--accent);
  }
  .seo-grid-row .seo-grid-cell:last-child {
    font-size: 13px;
  }
}

/* === STATIC PAGES === */
.page-header {
  text-align: center;
  margin-bottom: 36px;
}
.page-header h1 {
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.page-date {
  color: var(--text-dim);
  font-size: 13px;
}
.page-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
}
.page-section h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 24px 0 12px;
  color: var(--text);
}
.page-section h2:first-child { margin-top: 0; }
.page-section p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 12px;
}
.page-section ul {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin: 12px 0;
  padding-left: 24px;
}
.page-section li { margin-bottom: 6px; }
.page-section a {
  color: var(--accent);
  text-decoration: none;
}
.page-section a:hover { text-decoration: underline; }

/* === BLOG === */
.blog-section {
  padding: 40px 0;
}
.blog-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.blog-section-header h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.blog-view-all {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.blog-view-all:hover { text-decoration: underline; }

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.blog-list-item {
  background: var(--surface);
  padding: 20px 24px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s;
}
.blog-list-item:hover {
  background: var(--accent-soft);
}

.blog-list-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 12px;
}
.blog-list-date { color: var(--text-dim); }
.blog-list-cat {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.blog-list-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 6px;
}
.blog-list h2.blog-list-title { font-size: 17px; margin: 0 0 6px; }
.blog-list h3.blog-list-title { font-size: 15px; margin: 0 0 4px; }

.blog-list-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.blog-list-compact .blog-list-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.no-posts {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}

/* Blog Post */
.blog-post { margin-bottom: 40px; }

.blog-post-header {
  text-align: center;
  margin-bottom: 32px;
}
.blog-post-header h1 {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
}
.blog-post-date { color: var(--text-dim); }
.blog-post-cat {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 500;
}

.blog-post-excerpt {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.blog-post-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.blog-post-content h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 28px 0 14px;
  color: var(--text);
}
.blog-post-content h2:first-child { margin-top: 0; }
.blog-post-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--text);
}
.blog-post-content p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 14px;
}
.blog-post-content ul,
.blog-post-content ol {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin: 14px 0;
  padding-left: 24px;
}
.blog-post-content li { margin-bottom: 8px; }
.blog-post-content a {
  color: var(--accent);
  text-decoration: none;
}
.blog-post-content a:hover { text-decoration: underline; }
.blog-post-content strong { color: var(--text); }

.blog-post-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.blog-back-link:hover { color: var(--accent); }

.related-tools {
  margin-top: 40px;
}
.related-tools h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* === FOOTER === */
.footer {
  margin-top: 60px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}
.footer a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--text); }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 8px; }

/* === NO RESULTS === */
.no-results {
  text-align: center;
  padding: 40px;
  color: var(--text-dim);
  font-size: 14px;
  display: none;
}

/* === ANIMATIONS === */
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* stagger tool cards */
.tool-card:nth-child(1) { animation-delay: 0.02s; }
.tool-card:nth-child(2) { animation-delay: 0.04s; }
.tool-card:nth-child(3) { animation-delay: 0.06s; }
.tool-card:nth-child(4) { animation-delay: 0.08s; }
.tool-card:nth-child(5) { animation-delay: 0.10s; }
.tool-card:nth-child(6) { animation-delay: 0.12s; }
.tool-card:nth-child(7) { animation-delay: 0.14s; }
.tool-card:nth-child(8) { animation-delay: 0.16s; }
.tool-card:nth-child(9) { animation-delay: 0.18s; }
.tool-card:nth-child(10) { animation-delay: 0.20s; }
.tool-card:nth-child(n+11) { animation-delay: 0.22s; }
