/*
Theme Name: Claude Docs Theme
Theme URI: https://example.com/claude-docs-theme
Author: Your Name
Description: A documentation theme inspired by Claude Code docs with sidebar navigation, clean typography, and modern UI components.
Version: 1.0.0
License: GPL v2 or later
Text Domain: claude-docs
*/

/* ============================================
   CSS RESET & BASE
   ============================================ */

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

:root {
  /* Colors */
  --color-bg: #ffffff;
  --color-bg-secondary: #fafafa;
  --color-bg-sidebar: #fafafa;
  --color-bg-code: #f5f5f4;
  --color-bg-code-block: #1e1e2e;
  --color-bg-note: #eff6ff;
  --color-bg-tip: #f0fdf4;
  --color-bg-warning: #fffbeb;
  --color-border: #e5e5e5;
  --color-border-light: #f0f0f0;
  --color-border-note: #3b82f6;
  --color-border-tip: #22c55e;
  --color-border-warning: #f59e0b;
  --color-text: #1a1a1a;
  --color-text-secondary: #6b7280;
  --color-text-tertiary: #9ca3af;
  --color-link: #d97706;
  --color-link-hover: #b45309;
  --color-heading: #111111;
  --color-sidebar-active: #d97706;
  --color-sidebar-hover: #f5f5f4;
  --color-table-header-bg: #fafafa;
  --color-table-border: #e5e7eb;
  --color-table-stripe: #fafafa;
  --color-scrollbar: #d1d5db;
  --color-scrollbar-hover: #9ca3af;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Cascadia Code', 'Roboto Mono', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;

  /* Spacing */
  --sidebar-width: 260px;
  --content-max-width: 768px;
  --header-height: 56px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
}

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* ============================================
   HEADER / TOP BAR
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-heading);
  font-weight: 600;
  font-size: var(--text-base);
}

.site-logo svg,
.site-logo img {
  width: 28px;
  height: 28px;
}

.site-logo-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.header-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  color: var(--color-text-secondary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav a {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.header-nav a:hover {
  color: var(--color-text);
  background: var(--color-bg-secondary);
}

.header-nav a.active {
  color: var(--color-text);
  font-weight: 500;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  cursor: pointer;
  transition: border-color var(--transition-fast);
  min-width: 200px;
}

.header-search:hover {
  border-color: var(--color-text-tertiary);
}

.header-search svg {
  width: 16px;
  height: 16px;
  opacity: 0.5;
}

.header-search kbd {
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: 11px;
  padding: 1px 5px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text-tertiary);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--color-text);
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   LAYOUT
   ============================================ */

.docs-layout {
  display: flex;
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}

/* ============================================
   SIDEBAR
   ============================================ */

.docs-sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--color-bg);
  border-right: 1px solid var(--color-border);
  overflow-y: auto;
  padding: 16px 0;
  z-index: 50;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.docs-sidebar:hover {
  scrollbar-color: var(--color-scrollbar) transparent;
}

.docs-sidebar::-webkit-scrollbar {
  width: 6px;
}

.docs-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.docs-sidebar::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 3px;
}

.docs-sidebar:hover::-webkit-scrollbar-thumb {
  background: var(--color-scrollbar);
}

.sidebar-section {
  margin-bottom: 8px;
}

.sidebar-section-title {
  display: block;
  padding: 6px 24px;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-tertiary);
  margin-bottom: 2px;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  margin: 0;
}

.sidebar-nav a {
  display: block;
  padding: 6px 24px;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast), background var(--transition-fast);
  border-right: 2px solid transparent;
  line-height: 1.5;
}

.sidebar-nav a:hover {
  color: var(--color-text);
  background: var(--color-sidebar-hover);
}

.sidebar-nav a.active {
  color: var(--color-sidebar-active);
  border-right-color: var(--color-sidebar-active);
  font-weight: 500;
  background: #fefce8;
}

.sidebar-nav .has-children > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-nav .has-children > a::after {
  content: '';
  width: 5px;
  height: 5px;
  border-right: 1.5px solid var(--color-text-tertiary);
  border-bottom: 1.5px solid var(--color-text-tertiary);
  transform: rotate(-45deg);
  transition: transform var(--transition-fast);
}

.sidebar-nav .has-children.open > a::after {
  transform: rotate(45deg);
}

.sidebar-nav .sub-menu {
  list-style: none;
  padding: 0;
  display: none;
}

.sidebar-nav .has-children.open > .sub-menu {
  display: block;
}

.sidebar-nav .sub-menu a {
  padding-left: 40px;
  font-size: 13px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.docs-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 40px 48px 80px;
  min-width: 0;
}

.docs-content-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

/* ============================================
   ON THIS PAGE (RIGHT SIDEBAR / TOC)
   ============================================ */

.docs-toc {
  position: fixed;
  top: var(--header-height);
  right: 0;
  width: 220px;
  padding: 24px 16px;
  overflow-y: auto;
  max-height: calc(100vh - var(--header-height));
  display: none;
}

@media (min-width: 1280px) {
  .docs-toc {
    display: block;
  }

  .docs-content {
    margin-right: 220px;
  }
}

.toc-title {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-tertiary);
  margin-bottom: 12px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin: 0;
}

.toc-list a {
  display: block;
  padding: 4px 0;
  font-size: 13px;
  color: var(--color-text-tertiary);
  text-decoration: none;
  line-height: 1.4;
  transition: color var(--transition-fast);
  border-left: 2px solid transparent;
  padding-left: 12px;
}

.toc-list a:hover {
  color: var(--color-text);
}

.toc-list a.active {
  color: var(--color-text);
  border-left-color: var(--color-text);
}

.toc-list .toc-h3 a {
  padding-left: 24px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.docs-content h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.docs-content h1 + .subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}

.docs-content h2 {
  font-size: var(--text-2xl);
  font-weight: 650;
  color: var(--color-heading);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border-light);
}

.docs-content h2:first-child {
  margin-top: 0;
}

.docs-content h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-heading);
  letter-spacing: -0.015em;
  line-height: 1.4;
  margin-top: 36px;
  margin-bottom: 12px;
}

.docs-content h4 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-heading);
  line-height: 1.5;
  margin-top: 28px;
  margin-bottom: 8px;
}

.docs-content p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.docs-content a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-color: rgba(217, 119, 6, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color var(--transition-fast);
}

.docs-content a:hover {
  text-decoration-color: var(--color-link);
}

.docs-content strong {
  font-weight: 600;
  color: var(--color-heading);
}

.docs-content ul,
.docs-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.docs-content li {
  margin-bottom: 6px;
  line-height: 1.7;
}

.docs-content li > ul,
.docs-content li > ol {
  margin-top: 6px;
  margin-bottom: 6px;
}

.docs-content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 32px 0;
}

/* ============================================
   INLINE CODE
   ============================================ */

.docs-content code:not(pre code) {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-bg-code);
  border: 1px solid var(--color-border-light);
  border-radius: 5px;
  padding: 2px 6px;
  color: var(--color-heading);
  word-break: break-word;
}

/* ============================================
   CODE BLOCKS
   ============================================ */

.docs-content pre {
  background: var(--color-bg-code-block);
  border-radius: 10px;
  padding: 0;
  margin-bottom: 20px;
  overflow: hidden;
  font-size: var(--text-sm);
  border: 1px solid #2d2d3f;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: #8b8ba7;
}

.code-block-lang {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.code-block-copy {
  background: none;
  border: none;
  color: #8b8ba7;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: var(--text-xs);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.code-block-copy:hover {
  color: #d4d4e4;
  background: rgba(255, 255, 255, 0.06);
}

.docs-content pre code {
  display: block;
  padding: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: #d4d4e4;
  background: none;
  border: none;
  border-radius: 0;
}

/* Syntax highlighting colors */
.token-keyword { color: #c678dd; }
.token-string { color: #98c379; }
.token-comment { color: #5c6370; font-style: italic; }
.token-function { color: #61afef; }
.token-number { color: #d19a66; }
.token-property { color: #e06c75; }
.token-operator { color: #56b6c2; }
.token-punctuation { color: #abb2bf; }
.token-tag { color: #e06c75; }
.token-attr { color: #d19a66; }
.token-selector { color: #c678dd; }

/* Expandable code blocks */
.code-expandable {
  position: relative;
}

.code-expandable.collapsed pre code {
  max-height: 200px;
  overflow: hidden;
}

.code-expandable.collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--color-bg-code-block));
  pointer-events: none;
}

.code-expand-btn {
  display: block;
  width: 100%;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #8b8ba7;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.code-expand-btn:hover {
  color: #d4d4e4;
  background: rgba(255, 255, 255, 0.06);
}

/* ============================================
   TABLES
   ============================================ */

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: var(--text-sm);
  border: 1px solid var(--color-table-border);
  border-radius: 8px;
  overflow: hidden;
}

.docs-content .table-wrapper {
  overflow-x: auto;
  margin-bottom: 24px;
  border: 1px solid var(--color-table-border);
  border-radius: 8px;
}

.docs-content .table-wrapper table {
  margin-bottom: 0;
  border: none;
  border-radius: 0;
}

.docs-content thead {
  background: var(--color-table-header-bg);
}

.docs-content th {
  text-align: left;
  font-weight: 600;
  color: var(--color-heading);
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-table-border);
  white-space: nowrap;
}

.docs-content td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-table-border);
  vertical-align: top;
  line-height: 1.5;
}

.docs-content tr:last-child td {
  border-bottom: none;
}

.docs-content tbody tr:nth-child(even) {
  background: var(--color-table-stripe);
}

/* ============================================
   CALLOUT BOXES (Note, Tip, Warning)
   ============================================ */

.callout {
  padding: 16px 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  border-left: 3px solid;
  font-size: var(--text-sm);
  line-height: 1.6;
}

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

.callout-title {
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.callout-note {
  background: var(--color-bg-note);
  border-color: var(--color-border-note);
}

.callout-note .callout-title {
  color: #2563eb;
}

.callout-tip {
  background: var(--color-bg-tip);
  border-color: var(--color-border-tip);
}

.callout-tip .callout-title {
  color: #16a34a;
}

.callout-warning {
  background: var(--color-bg-warning);
  border-color: var(--color-border-warning);
}

.callout-warning .callout-title {
  color: #d97706;
}

/* ============================================
   STEPS / NUMBERED SECTIONS
   ============================================ */

.steps {
  counter-reset: step-counter;
  margin-bottom: 24px;
}

.step {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  position: relative;
}

.step::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--color-heading);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-top: 2px;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 13px;
  top: 34px;
  bottom: -28px;
  width: 1.5px;
  background: var(--color-border);
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 8px;
}

.step-content p {
  margin-bottom: 12px;
}

.step-content pre {
  margin-bottom: 12px;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.breadcrumb .separator {
  color: var(--color-text-tertiary);
}

/* ============================================
   PAGINATION (Prev / Next)
   ============================================ */

.docs-pagination {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.docs-pagination a {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-width: 0;
  max-width: 48%;
}

.docs-pagination a:hover {
  border-color: var(--color-text-tertiary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.docs-pagination .pagination-label {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.docs-pagination .pagination-title {
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 500;
}

.docs-pagination .prev {
  align-items: flex-start;
}

.docs-pagination .next {
  align-items: flex-end;
  margin-left: auto;
}

/* ============================================
   RELATED RESOURCES LIST
   ============================================ */

.related-resources {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.related-resources li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.related-resources li:last-child {
  border-bottom: none;
}

.related-resources a {
  font-weight: 500;
}

.related-resources .resource-desc {
  color: var(--color-text-secondary);
  margin-left: 4px;
}

/* ============================================
   FILE TREE
   ============================================ */

.file-tree {
  background: var(--color-bg-code-block);
  border-radius: 10px;
  border: 1px solid #2d2d3f;
  padding: 16px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: #d4d4e4;
}

.file-tree .tree-dir {
  color: #61afef;
}

.file-tree .tree-file {
  color: #d4d4e4;
}

.file-tree .tree-comment {
  color: #5c6370;
  margin-left: 8px;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  margin-left: 0;
  padding: 48px 48px 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  background: var(--color-bg-secondary);
}

.footer-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--color-text-tertiary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* ============================================
   MOBILE / RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .docs-sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    z-index: 90;
    background: var(--color-bg);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  }

  .docs-sidebar.open {
    transform: translateX(0);
  }

  .docs-content {
    margin-left: 0;
    padding: 24px 20px 60px;
  }

  .site-footer {
    margin-left: 0;
    padding: 24px 20px;
  }

  .menu-toggle {
    display: block;
  }

  .header-search {
    display: none;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 80;
  }

  .sidebar-overlay.active {
    display: block;
  }
}

@media (max-width: 768px) {
  :root {
    --text-3xl: 1.5rem;
    --text-2xl: 1.25rem;
    --text-xl: 1.125rem;
  }

  .docs-content pre code {
    font-size: 12px;
  }

  .docs-pagination {
    flex-direction: column;
  }

  .docs-pagination a {
    max-width: 100%;
  }

  .header-nav {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

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

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ============================================
   ARTICLE-SPECIFIC ENHANCEMENTS
   ============================================ */

/* Score Badge */
.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.score-badge.score-high {
  background: #dcfce7;
  color: #15803d;
}

.score-badge.score-mid {
  background: #fef9c3;
  color: #a16207;
}

.score-badge.score-low {
  background: #fee2e2;
  color: #b91c1c;
}

/* Tool Section Card */
.tool-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: none;
}

.tool-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.tool-header h2 {
  margin: 0;
  padding: 0;
  border: none;
  flex: 1;
  min-width: 0;
}

.tool-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-top: 4px;
}

.tool-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-style: italic;
  margin-bottom: 20px;
}

/* Blockquotes / Reddit Quotes */
.docs-content blockquote {
  position: relative;
  margin: 0 0 12px 0;
  padding: 16px 20px 16px 48px;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f4 100%);
  border-radius: 10px;
  border: 1px solid var(--color-border-light);
  border-left: 3px solid var(--color-link);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.docs-content blockquote::before {
  content: '\201C';
  position: absolute;
  left: 14px;
  top: 8px;
  font-size: 32px;
  color: var(--color-link);
  opacity: 0.5;
  font-family: Georgia, serif;
  line-height: 1;
}

.docs-content blockquote p {
  margin-bottom: 0;
}

/* Pros / Cons Lists */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .pros-cons {
    grid-template-columns: 1fr;
  }
}

.pros-list,
.cons-list {
  border-radius: 10px;
  padding: 20px;
  border: 1px solid;
}

.pros-list {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.cons-list {
  background: #fef2f2;
  border-color: #fecaca;
}

.pros-list .list-title,
.cons-list .list-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pros-list .list-title {
  color: #15803d;
}

.cons-list .list-title {
  color: #b91c1c;
}

.pros-list ul,
.cons-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pros-list li,
.cons-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.pros-list li:last-child,
.cons-list li:last-child {
  margin-bottom: 0;
}

.pros-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 14px;
  background: #22c55e;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}

.cons-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 14px;
  background: #ef4444;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M4.646 4.646a.5.5 0 01.708 0L8 7.293l2.646-2.647a.5.5 0 01.708.708L8.707 8l2.647 2.646a.5.5 0 01-.708.708L8 8.707l-2.646 2.647a.5.5 0 01-.708-.708L7.293 8 4.646 5.354a.5.5 0 010-.708z'/%3E%3C/svg%3E");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Pricing Card */
.pricing-box {
  background: linear-gradient(135deg, #fefce8 0%, #fff7ed 100%);
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.pricing-box .pricing-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: var(--text-sm);
  color: #92400e;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-box ul {
  margin: 0;
  padding-left: 20px;
}

.pricing-box li {
  font-size: var(--text-sm);
  margin-bottom: 6px;
  line-height: 1.5;
}

.pricing-box .pricing-source {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  font-style: italic;
  margin-top: 8px;
  margin-bottom: 0;
}

/* Reddit Section */
.reddit-section {
  background: #fff8f0;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.reddit-section .reddit-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: var(--text-sm);
  color: #c2410c;
  margin-bottom: 12px;
}

.reddit-section .reddit-title svg {
  flex-shrink: 0;
}

.reddit-section blockquote {
  background: white;
  border-color: #fdba74;
  margin-bottom: 10px;
}

.reddit-section blockquote:last-of-type {
  margin-bottom: 0;
}

.reddit-section .complaints {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  margin-top: 12px;
  margin-bottom: 0;
  padding-top: 10px;
  border-top: 1px solid #fed7aa;
}

/* Verdict Card */
.verdict-box {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.verdict-box .verdict-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.verdict-box .verdict-title {
  font-weight: 700;
  font-size: var(--text-sm);
  color: #1e40af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.verdict-box p:last-child {
  font-size: var(--text-sm);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Best For Tag */
.best-for-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.best-for-box .best-for-label {
  font-weight: 700;
  color: #6d28d9;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Section Divider */
.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-border), transparent);
  margin: 48px 0;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 40px;
  height: 40px;
  background: var(--color-heading);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(to right, #d97706, #f59e0b);
  z-index: 101;
  transition: width 0.1s linear;
}

/* Overview card at the top */
.article-hero {
  background: linear-gradient(135deg, #fefce8 0%, #fff7ed 50%, #fef2f2 100%);
  border: 1px solid #fde68a;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
}

.article-hero h1 {
  margin-bottom: 16px;
  font-size: var(--text-3xl);
}

.article-hero p {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

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

/* FAQ Accordion Style */
.faq-section h3 {
  cursor: default;
  padding: 16px 0 8px;
  border-bottom: none;
  margin-top: 24px;
  margin-bottom: 0;
  font-size: var(--text-base);
}

.faq-section h3:first-of-type {
  margin-top: 8px;
}

.faq-section h3 + p {
  padding: 0 0 16px;
  margin-bottom: 0;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
  border-bottom: 1px solid var(--color-border-light);
}

/* Comparison table enhancements */
.docs-content .comparison-table td:first-child {
  font-weight: 700;
  color: var(--color-link);
  text-align: center;
}

.docs-content .comparison-table tr {
  transition: background 0.15s ease;
}

.docs-content .comparison-table tr:hover td {
  background: #fefce8;
}

/* Rank badge */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--color-heading);
  color: white;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Feature list enhanced */
.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-bottom: 20px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  background: var(--color-bg-secondary);
  border-radius: 8px;
  font-size: var(--text-sm);
  line-height: 1.5;
  margin-bottom: 0;
  border: 1px solid var(--color-border-light);
  transition: border-color 0.15s ease;
}

.feature-list li:hover {
  border-color: var(--color-border);
}

.feature-list .feature-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--color-link);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  color: white;
  font-size: 11px;
  font-weight: 700;
}

/* ============================================
   SITE CONTENT (NON-DOCS PAGES)
   ============================================ */

.site-content {
  padding: 40px 24px 80px;
  max-width: 1200px;
  margin: calc(var(--header-height) + 0px) auto 0;
}

body:not(.page-template-page-docs) .site-footer {
  margin-left: 0;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
  text-align: center;
  padding: 80px 24px;
  max-width: 700px;
  margin: 0 auto;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-heading);
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.btn-primary {
  background: var(--color-link);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
  background: var(--color-link-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
  color: #ffffff;
  text-decoration: none;
}

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
}

/* ============================================
   ARTICLE CARD GRID
   ============================================ */

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.article-card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.article-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.card-thumbnail {
  display: block;
  overflow: hidden;
  height: 200px;
  background: #f5f5f4;
}

.card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .card-thumbnail img {
  transform: scale(1.03);
}

.card-body {
  padding: 20px;
}

.card-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  font-size: var(--text-xs);
}

.card-category {
  color: var(--color-link);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-date {
  color: var(--color-text-tertiary);
}

.card-title {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}

.card-title a {
  color: var(--color-heading);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.card-title a:hover {
  color: var(--color-link);
}

.card-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.card-placeholder {
  height: 200px;
  background: linear-gradient(135deg, #fefce8, #fff7ed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
  font-size: 3rem;
}

/* ============================================
   BLOG LAYOUT
   ============================================ */

.blog-layout {
  display: flex;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-main {
  flex: 1;
  min-width: 0;
}

.blog-sidebar {
  width: 280px;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .blog-sidebar {
    display: none;
  }
}

/* ============================================
   BLOG SIDEBAR WIDGETS
   ============================================ */

.sidebar-widget {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border-light);
}

.sidebar-widget:last-child {
  border-bottom: none;
}

.widget-title {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-tertiary);
  margin-bottom: 14px;
}

.widget-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.widget-list li:last-child {
  border-bottom: none;
}

.widget-list a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.widget-list a:hover {
  color: var(--color-text);
}

.widget-list .count {
  color: var(--color-text-tertiary);
  font-size: var(--text-xs);
  margin-left: 4px;
}

.recent-post-item {
  display: flex;
  gap: 12px;
  padding: 8px 0;
}

.recent-post-thumb {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-bg-secondary);
}

.recent-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-post-info {
  flex: 1;
  min-width: 0;
}

.recent-post-title {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 4px;
}

.recent-post-title a {
  color: var(--color-heading);
  text-decoration: none;
}

.recent-post-date {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

.newsletter-widget form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.newsletter-widget input[type="email"] {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: var(--text-sm);
  font-family: var(--font-sans);
}

.newsletter-widget button {
  background: var(--color-heading);
  color: #ffffff;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.newsletter-widget button:hover {
  background: var(--color-link);
}

/* ============================================
   CATEGORIES GRID (HOMEPAGE)
   ============================================ */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.category-card {
  padding: 24px 16px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.category-card:hover {
  border-color: var(--color-link);
  background: #fefce8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.cat-name {
  font-weight: 600;
  color: var(--color-heading);
  font-size: var(--text-base);
}

.cat-count {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.cat-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

/* ============================================
   NEWSLETTER SECTION (HOMEPAGE)
   ============================================ */

.newsletter-section {
  background: linear-gradient(135deg, #fefce8 0%, #fff7ed 100%);
  border: 1px solid #fde68a;
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  margin: 48px 0;
}

.newsletter-section h2 {
  margin-bottom: 8px;
}

.newsletter-section p {
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  font-size: var(--text-base);
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: var(--text-base);
  font-family: var(--font-sans);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-link);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.newsletter-form button {
  background: var(--color-link);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.newsletter-form button:hover {
  background: var(--color-link-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

@media (max-width: 480px) {
  .newsletter-form {
    flex-direction: column;
  }
}

/* ============================================
   SINGLE POST ENHANCEMENTS
   ============================================ */

.single-layout {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  gap: 0;
}

.single-article {
  flex: 1;
  padding: 40px 48px 80px;
  min-width: 0;
}

.single-article .docs-toc {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.single-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: var(--text-sm);
}

.single-meta .meta-category a {
  color: var(--color-link);
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  padding: 3px 10px;
  background: #fef9c3;
  border-radius: 20px;
}

.single-meta .meta-date,
.single-meta .meta-reading-time {
  color: var(--color-text-tertiary);
}

.single-meta .meta-separator {
  color: var(--color-border);
  font-size: var(--text-xs);
}

.single-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.single-tags a {
  display: inline-flex;
  padding: 5px 14px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.single-tags a:hover {
  border-color: var(--color-text-tertiary);
  color: var(--color-text);
}

.author-box {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--color-bg-secondary);
  border-radius: 14px;
  margin-top: 40px;
  border: 1px solid var(--color-border-light);
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  flex: 1;
}

.author-name {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-heading);
  margin-bottom: 4px;
}

.author-bio {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.related-posts {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.related-posts h2 {
  font-size: var(--text-xl);
  margin-bottom: 20px;
  border: none;
  padding: 0;
}

.related-posts .article-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .related-posts .article-grid {
    grid-template-columns: 1fr;
  }

  .single-article {
    padding: 24px 20px;
  }
}

/* ============================================
   404 PAGE
   ============================================ */

.error-404-page {
  text-align: center;
  padding: 100px 24px 120px;
  max-width: 480px;
  margin: 0 auto;
}

.error-404-page .error-code {
  font-size: 8rem;
  font-weight: 800;
  color: var(--color-link);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}

.error-404-page h1 {
  font-size: var(--text-2xl);
  margin-bottom: 12px;
}

.error-404-page p {
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  font-size: var(--text-base);
}

.error-404-page .search-form {
  margin-top: 24px;
}

/* ============================================
   ARCHIVE HEADER
   ============================================ */

.archive-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.archive-header h1 {
  font-size: var(--text-2xl);
  margin-bottom: 8px;
}

.archive-header p {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--color-text-secondary);
  transition: border-color var(--transition-fast), color var(--transition-fast);
  font-weight: 500;
}

.pagination .page-numbers:hover {
  border-color: var(--color-text-tertiary);
  color: var(--color-text);
}

.pagination .page-numbers.current {
  background: var(--color-heading);
  color: #ffffff;
  border-color: var(--color-heading);
}

.pagination .page-numbers.dots {
  border: none;
  background: none;
}

/* ============================================
   SEARCH FORM
   ============================================ */

.search-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
}

.search-form .search-field {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: var(--text-sm);
  font-family: var(--font-sans);
}

.search-form .search-field:focus {
  outline: none;
  border-color: var(--color-link);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.search-form .search-submit {
  background: var(--color-heading);
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-form .search-submit:hover {
  background: var(--color-link);
}

/* ============================================
   FOOTER MULTI-COLUMN
   ============================================ */

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  margin-bottom: 14px;
}

.footer-col p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

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

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-text);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   STATIC PAGES (ABOUT, CONTACT)
   ============================================ */

.static-page {
  max-width: 768px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.contact-form {
  max-width: 560px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-heading);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: var(--text-sm);
  font-family: var(--font-sans);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-link);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* ============================================
   FOOTER COLUMNS (footer.php)
   ============================================ */

.footer-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-about {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0 0 12px;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-list li {
  margin-bottom: 8px;
}

.footer-nav-list a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-nav-list a:hover {
  color: var(--color-link);
}

/* Newsletter form in footer */
.footer-newsletter {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.footer-newsletter-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition-fast);
}

.footer-newsletter-input:focus {
  border-color: var(--color-link);
}

.footer-newsletter-btn {
  padding: 8px 16px;
  background: var(--color-link);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background var(--transition-fast);
  white-space: nowrap;
}

.footer-newsletter-btn:hover {
  background: var(--color-link-hover);
}

@media (max-width: 1024px) {
  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ============================================
   HEADER SEARCH FORM INPUT
   ============================================ */

.header-search-form {
  display: contents;
}

.header-search-input {
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text);
  outline: none;
  width: 100%;
  min-width: 0;
}

.header-search-input::placeholder {
  color: var(--color-text-tertiary);
}

/* Author label in single */
.author-info .author-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-tertiary);
  font-weight: 500;
}

/* Related posts title (h3 variant) */
.related-posts-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 24px;
  margin-top: 0;
  border: none;
  padding: 0;
}

/* Card grid for related posts */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* Tags label */
.single-tags .tags-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
}

.single-tags .tag-link {
  display: inline-block;
  padding: 4px 12px;
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  text-decoration: none;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.single-tags .tag-link:hover {
  border-color: var(--color-link);
  color: var(--color-link);
}
