/* ToolHive Global Design System */
/* Typefaces: Inter (UI) + JetBrains Mono (code/data) */

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

/* ═══════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════ */
:root {
  --accent: #6366F1;
  --accent-dark: #4F46E5;
  --accent-light: #EEF2FF;
  --accent-text: #4338CA;

  --bg: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-tertiary: #F1F3F5;

  --text: #0F0F0F;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;

  --border: #E5E7EB;
  --border-strong: #D1D5DB;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.04);

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

  --nav-height: 64px;
  --max-width: 1200px;
  --content-width: 800px;

  /* Category colors */
  --cat-text: #8B5CF6;
  --cat-text-light: #EDE9FE;
  --cat-numbers: #10B981;
  --cat-numbers-light: #D1FAE5;
  --cat-developer: #3B82F6;
  --cat-developer-light: #DBEAFE;
  --cat-security: #EF4444;
  --cat-security-light: #FEE2E2;
  --cat-images: #F97316;
  --cat-images-light: #FFEDD5;
  --cat-productivity: #F59E0B;
  --cat-productivity-light: #FEF3C7;
  --cat-seo: #EC4899;
  --cat-seo-light: #FCE7F3;
  --cat-data: #6B7280;
  --cat-data-light: #F3F4F6;
}

[data-theme="dark"] {
  --bg: #0F0F0F;
  --bg-secondary: #1A1A1A;
  --bg-tertiary: #262626;
  --text: #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --border: #262626;
  --border-strong: #374151;
  --accent-light: #1E1B4B;
  --accent-text: #A5B4FC;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.5);
  --cat-text-light: #2D1B69;
  --cat-numbers-light: #064E3B;
  --cat-developer-light: #1E3A5F;
  --cat-security-light: #450A0A;
  --cat-images-light: #431407;
  --cat-productivity-light: #451A03;
  --cat-seo-light: #500724;
  --cat-data-light: #1F2937;
}

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

html {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body { min-height: 100vh; display: flex; flex-direction: column; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4, h5 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: 2.25rem; letter-spacing: -0.03em; }
h2 { font-size: 1.5rem; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { color: var(--text-secondary); line-height: 1.7; }

code, pre {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

pre {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  overflow-x: auto;
}

/* ═══════════════════════════════════════
   LAYOUT
═══════════════════════════════════════ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main { flex: 1; }

/* ═══════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════ */
.nav {
  height: var(--nav-height);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.9);
}

[data-theme="dark"] .nav {
  background: rgba(15,15,15,0.9);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo:hover { text-decoration: none; }

.nav-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 700;
}

.nav-search {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.nav-search input {
  width: 100%;
  height: 38px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 1rem 0 2.5rem;
  font-size: 0.875rem;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.nav-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

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

.nav-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nav-link:hover {
  background: var(--bg-secondary);
  color: var(--text);
  text-decoration: none;
}

.nav-link.active {
  background: var(--accent-light);
  color: var(--accent-text);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 16px;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.theme-toggle:hover { background: var(--bg-tertiary); color: var(--text); }

/* Search dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  max-height: 400px;
  overflow-y: auto;
  display: none;
}

.search-dropdown.visible { display: block; }

.search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.625rem 0.875rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
  text-decoration: none;
  color: var(--text);
}

.search-result:last-child { border-bottom: none; }
.search-result:hover { background: var(--bg-secondary); text-decoration: none; }

.search-result-cat {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.search-result-info { flex: 1; min-width: 0; }

.search-result-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand p {
  font-size: 0.875rem;
  margin-top: 0.75rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.875rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 0.5rem; }

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col ul li a:hover { color: var(--accent); text-decoration: none; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-affiliate {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: var(--max-width);
  margin: 1rem auto 0;
  padding: 0 1.5rem;
}

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; }

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

.btn-primary:hover { background: var(--accent-dark); color: white; }

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

.btn-secondary:hover { background: var(--bg-tertiary); color: var(--text); }

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

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

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

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

.btn-copy {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
}

.btn-copy:hover { border-color: var(--accent); color: var(--accent); }
.btn-copy.copied { background: #D1FAE5; border-color: #10B981; color: #065F46; }

/* ═══════════════════════════════════════
   FORM ELEMENTS
═══════════════════════════════════════ */
.input, .textarea, .select {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}

.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
  background: var(--bg);
}

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

.textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.textarea.mono { font-family: var(--font-mono); font-size: 0.875rem; }

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.field { margin-bottom: 1.25rem; }

.field-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.375rem;
}

/* ═══════════════════════════════════════
   TOOL CARDS
═══════════════════════════════════════ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.tool-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}

.tool-card::before {
  content: attr(data-icon);
  position: absolute;
  right: -8px;
  bottom: -12px;
  font-size: 5rem;
  opacity: 0.06;
  pointer-events: none;
  line-height: 1;
  user-select: none;
}

.tool-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}

.tool-card-cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 99px;
}

.tool-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.125rem;
}

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

.tool-card-arrow {
  color: var(--text-muted);
  font-size: 1rem;
  align-self: flex-end;
  transition: color 0.15s, transform 0.15s;
}

.tool-card:hover .tool-card-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* ═══════════════════════════════════════
   CATEGORY CARDS
═══════════════════════════════════════ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.category-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

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

.category-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.category-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
}

.category-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.category-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: auto;
}

/* ═══════════════════════════════════════
   BADGES & TAGS
═══════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.badge-accent { background: var(--accent-light); color: var(--accent-text); }
.badge-gray { background: var(--bg-tertiary); color: var(--text-secondary); }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  background: var(--bg);
  text-decoration: none;
}

.tag:hover, .tag.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  text-decoration: none;
}

/* ═══════════════════════════════════════
   TOOL PAGE LAYOUT
═══════════════════════════════════════ */
.tool-page {
  padding: 2rem 0 4rem;
}

.tool-header {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.tool-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.tool-breadcrumb a { color: var(--text-muted); }
.tool-breadcrumb a:hover { color: var(--accent); }
.tool-breadcrumb span { color: var(--text-muted); }

.tool-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.tool-title-row h1 { font-size: 2rem; }

.tool-tagline {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  font-style: italic;
}

.tool-workspace {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.tool-output {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  min-height: 80px;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--text);
}

.tool-output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.tool-output-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  text-align: center;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ═══════════════════════════════════════
   AD SLOTS
═══════════════════════════════════════ */
.ad-slot {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  overflow: hidden;
}

.ad-slot-horizontal {
  width: 100%;
  min-height: 90px;
  margin: 1.5rem 0;
}

.ad-slot-rectangle {
  width: 100%;
  min-height: 250px;
}

.ad-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-align: center;
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════
   RELATED TOOLS
═══════════════════════════════════════ */
.related-tools {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.related-tools h2 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.related-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.15s;
}

.related-card:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  text-decoration: none;
}

.related-card-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.related-card-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.related-card-cat {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════
   FILTER BAR
═══════════════════════════════════════ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-bar .input {
  max-width: 280px;
}

.filter-select {
  height: 38px;
  padding: 0 2rem 0 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-secondary);
  font-size: 0.875rem;
  font-family: var(--font);
  color: var(--text);
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  transition: border-color 0.15s;
}

.filter-select:focus { border-color: var(--accent); }

.filter-count {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  color: var(--accent-text);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 99px;
  padding: 4px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero h1 span {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.875rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ═══════════════════════════════════════
   SECTION HEADERS
═══════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section-header h2 { font-size: 1.375rem; }

.section-header a {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
}

/* ═══════════════════════════════════════
   ARTICLE / BLOG
═══════════════════════════════════════ */
.article-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-content h2 {
  font-size: 1.375rem;
  color: var(--text);
  margin: 2rem 0 0.875rem;
  padding-top: 0.5rem;
}

.article-content h3 {
  font-size: 1.125rem;
  color: var(--text);
  margin: 1.5rem 0 0.625rem;
}

.article-content p { margin-bottom: 1.125rem; }

.article-content ul, .article-content ol {
  margin: 0.875rem 0 1.125rem 1.5rem;
}

.article-content li { margin-bottom: 0.5rem; }

.article-content strong { color: var(--text); font-weight: 600; }

.article-content a { color: var(--accent); }

.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.25rem;
  background: var(--accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.25rem 0;
}

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

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

/* ═══════════════════════════════════════
   FAQ
═══════════════════════════════════════ */
.faq-list { margin-top: 1.5rem; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--bg);
  border: none;
  padding: 1.125rem 1.25rem;
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font);
  transition: background 0.15s;
}

.faq-question:hover { background: var(--bg-secondary); }

.faq-question.open { color: var(--accent); }

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.25s;
  color: var(--text-muted);
}

.faq-question.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* ═══════════════════════════════════════
   BUY ME A COFFEE FLOATING BUTTON
═══════════════════════════════════════ */
.bmac-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFDD00;
  color: #000;
  border: none;
  border-radius: 99px;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.bmac-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  text-decoration: none;
  color: #000;
}

.bmac-float:active { transform: translateY(0); }

/* ═══════════════════════════════════════
   SKIMLINKS AFFILIATE SECTION
═══════════════════════════════════════ */
.affiliate-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 2rem;
}

.affiliate-section h3 {
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.affiliate-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.affiliate-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 0.875rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s;
}

.affiliate-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* ═══════════════════════════════════════
   PAGINATION
═══════════════════════════════════════ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}

.page-btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.page-btn.active { background: var(--accent); color: white; border-color: var(--accent); }

/* ═══════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-search { max-width: 200px; }
  .hero { padding: 3rem 0 2.5rem; }
  .tool-workspace { padding: 1.25rem; }
  .tools-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .bmac-float span { display: none; }
  .bmac-float { padding: 12px; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .nav-search { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════
   UTILITIES
═══════════════════════════════════════ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
