/*
Theme Name: WalkathaZone
Theme URI: https://walkathazone.online
Author: WalkathaZone
Author URI: https://walkathazone.online
Description: A super-fast, text-focused WordPress theme for Sinhala adult stories. No images, maximum readability, blazing performance.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: walkathazone
Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --bg:          #0d0d0d;
  --bg-card:     #141414;
  --bg-hover:    #1a1a1a;
  --border:      #222222;
  --border-lite: #1c1c1c;
  --accent:      #c8102e;
  --accent-dim:  #8b0a1f;
  --text-head:   #f0ede8;
  --text-body:   #b8b3ac;
  --text-meta:   #6b6560;
  --text-link:   #c8102e;
  --font-head:   'Noto Sans Sinhala', 'Noto Serif Sinhala', Georgia, serif;
  --font-body:   'Noto Sans Sinhala', 'Noto Serif Sinhala', Georgia, serif;
  --font-ui:     system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r:           6px;
  --max-w:       740px;
  --max-w-wide:  1140px;
  --trans:       150ms ease;
}

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

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--text-link); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--accent-dim); }
ul, ol { padding-left: 1.5rem; }
button { cursor: pointer; font-family: inherit; }

/* ============================================================
   LAYOUT WRAPPERS
   ============================================================ */
.site-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 1rem;
}

.content-area {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 2rem 1rem;
  flex: 1;
}

.content-area.no-sidebar {
  grid-template-columns: 1fr;
  max-width: var(--max-w);
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  background: #0a0a0a;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  contain: layout style;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 56px;
  max-width: var(--max-w-wide);
  margin: 0 auto;
}

/* Site Branding */
.site-branding { flex-shrink: 0; }

.site-title {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-head);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-title .logo-zone {
  color: var(--accent);
}

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2px;
  padding: 0;
  margin: 0;
}

.main-nav a {
  color: var(--text-meta);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--r);
  transition: background var(--trans), color var(--trans);
  white-space: nowrap;
  display: block;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
  background: var(--bg-hover);
  color: var(--text-head);
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text-body);
  padding: 6px 10px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  gap: 6px;
  align-items: center;
}

/* Search in header */
.header-search { display: flex; align-items: center; }

.header-search form {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.header-search input {
  background: none;
  border: none;
  color: var(--text-body);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  padding: 6px 10px;
  width: 160px;
  outline: none;
}

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

.header-search button {
  background: none;
  border: none;
  color: var(--text-meta);
  padding: 6px 10px;
  font-size: 0.9rem;
  transition: color var(--trans);
}

.header-search button:hover { color: var(--accent); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: #0a0a0a;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
}

.mobile-menu.open { display: block; }

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.mobile-menu a {
  color: var(--text-body);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  padding: 5px 10px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  display: block;
  transition: background var(--trans), color var(--trans);
}

.mobile-menu a:hover { background: var(--bg-hover); color: var(--text-head); }

/* ============================================================
   HERO / TICKER BAR
   ============================================================ */
.ticker-bar {
  background: var(--accent);
  overflow: hidden;
  height: 30px;
  display: flex;
  align-items: center;
}

.ticker-label {
  background: var(--accent-dim);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0 10px;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.ticker-track {
  display: flex;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

.ticker-track a {
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0 20px;
  opacity: 0.9;
}

.ticker-track a:hover { opacity: 1; text-decoration: underline; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   CATEGORY PILL NAV
   ============================================================ */
.cat-nav-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-lite);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cat-nav-bar::-webkit-scrollbar { display: none; }

.cat-nav-inner {
  display: flex;
  gap: 6px;
  padding: 8px 1rem;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  min-width: max-content;
}

.cat-pill {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-meta);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  transition: all var(--trans);
  text-decoration: none;
  display: inline-block;
}

.cat-pill:hover,
.cat-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ============================================================
   MAIN — POST CARDS (Archive/Home)
   ============================================================ */
.posts-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-lite);
  border-radius: var(--r);
  padding: 1.1rem 1.25rem;
  transition: background var(--trans), border-color var(--trans);
  contain: layout style;
}

.post-card:hover {
  background: var(--bg-hover);
  border-color: var(--border);
}

.post-card + .post-card { margin-top: 8px; }

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.cat-tag {
  background: var(--accent);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  flex-shrink: 0;
}

.cat-tag:hover { background: var(--accent-dim); color: #fff; }

.post-date {
  color: var(--text-meta);
  font-family: var(--font-ui);
  font-size: 0.68rem;
}

.post-views {
  color: var(--text-meta);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  margin-left: auto;
}

.post-card-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-head);
  margin-bottom: 0.35rem;
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
}

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

.post-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-meta);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.read-more:hover { color: var(--text-head); }

/* Hot badge */
.badge-hot {
  background: #ff6b00;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text-body);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  transition: all var(--trans);
  text-decoration: none;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ============================================================
   SINGLE POST PAGE
   ============================================================ */
.single-post-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1rem;
}

.single-post-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-lite);
}

.single-post-cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.single-post-title {
  font-family: var(--font-head);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-head);
  margin-bottom: 0.75rem;
}

.single-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-meta);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  flex-wrap: wrap;
}

.meta-sep { color: var(--border); }

/* Post Content */
.entry-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-body);
}

.entry-content p { margin-bottom: 1.3rem; }

.entry-content h2 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-head);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-lite);
}

.entry-content h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-head);
  margin: 1.5rem 0 0.5rem;
}

.entry-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border-radius: 0 var(--r) var(--r) 0;
  font-style: italic;
  color: var(--text-body);
}

.entry-content ul, .entry-content ol {
  margin-bottom: 1.25rem;
}

.entry-content li { margin-bottom: 0.3rem; }

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* Post Navigation */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-lite);
}

.post-nav-link {
  background: var(--bg-card);
  border: 1px solid var(--border-lite);
  border-radius: var(--r);
  padding: 1rem;
  transition: all var(--trans);
  text-decoration: none;
}

.post-nav-link:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
}

.post-nav-label {
  color: var(--text-meta);
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.post-nav-title {
  color: var(--text-head);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-nav-link.next { text-align: right; }

/* Related Posts */
.related-posts {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-lite);
}

.section-title {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border-lite);
  border-radius: var(--r);
  padding: 0.85rem 1rem;
  text-decoration: none;
  transition: all var(--trans);
  display: block;
}

.related-card:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
}

.related-card-cat {
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 0.63rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.related-card-title {
  color: var(--text-head);
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 70px;
  align-self: start;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.widget {
  background: var(--bg-card);
  border: 1px solid var(--border-lite);
  border-radius: var(--r);
  overflow: hidden;
}

.widget-title {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-meta);
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border-lite);
  background: rgba(255,255,255,0.02);
}

.widget-body { padding: 0.5rem 0; }

/* Popular Posts Widget */
.popular-list { list-style: none; padding: 0; margin: 0; }

.popular-list li {
  border-bottom: 1px solid var(--border-lite);
}

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

.popular-list a {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  color: var(--text-body);
  text-decoration: none;
  transition: background var(--trans);
  font-size: 0.82rem;
  line-height: 1.35;
}

.popular-list a:hover { background: var(--bg-hover); color: var(--text-head); }

.pop-num {
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  min-width: 18px;
  padding-top: 1px;
}

/* Categories Widget */
.cat-list { list-style: none; padding: 0; margin: 0; }

.cat-list li { border-bottom: 1px solid var(--border-lite); }
.cat-list li:last-child { border-bottom: none; }

.cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  color: var(--text-body);
  font-size: 0.82rem;
  text-decoration: none;
  transition: background var(--trans);
}

.cat-list a:hover { background: var(--bg-hover); color: var(--text-head); }

.cat-count {
  color: var(--text-meta);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  background: var(--bg);
  border: 1px solid var(--border-lite);
  border-radius: 20px;
  padding: 1px 7px;
}

/* Search Widget */
.widget-search-form {
  display: flex;
  margin: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.widget-search-form input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 8px 10px;
  outline: none;
}

.widget-search-form input::placeholder { color: var(--text-meta); }

.widget-search-form button {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 0 12px;
  font-size: 0.9rem;
  transition: background var(--trans);
}

.widget-search-form button:hover { background: var(--accent-dim); }

/* Tag Cloud Widget */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0.75rem;
}

.tag-cloud a {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-meta);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  padding: 3px 9px;
  border-radius: 20px;
  text-decoration: none;
  transition: all var(--trans);
}

.tag-cloud a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-lite);
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.comment {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-lite);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
}

.comment-author-name {
  color: var(--text-head);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
}

.comment-date {
  color: var(--text-meta);
  font-family: var(--font-ui);
  font-size: 0.7rem;
}

.comment-body {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-body);
}

.comment-reply-link {
  color: var(--text-meta);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  display: inline-block;
  margin-top: 0.4rem;
  transition: color var(--trans);
}

.comment-reply-link:hover { color: var(--accent); }

/* Comment Form */
.comment-respond { margin-top: 1.5rem; }

.comment-form input,
.comment-form textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 10px 14px;
  margin-bottom: 0.75rem;
  outline: none;
  transition: border-color var(--trans);
}

.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--accent); }

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

.comment-form input::placeholder,
.comment-form textarea::placeholder { color: var(--text-meta); }

.comment-form .submit {
  background: var(--accent);
  border: none;
  border-radius: var(--r);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 24px;
  cursor: pointer;
  transition: background var(--trans);
}

.comment-form .submit:hover { background: var(--accent-dim); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0a0a0a;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 2.5rem 1rem 1.5rem;
}

.footer-widget-title {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-meta);
  margin-bottom: 0.85rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-links a {
  color: var(--text-meta);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color var(--trans);
}

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

.footer-desc {
  color: var(--text-meta);
  font-size: 0.82rem;
  line-height: 1.65;
}

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

.footer-copy {
  color: var(--text-meta);
  font-family: var(--font-ui);
  font-size: 0.72rem;
}

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

.footer-nav-links a {
  color: var(--text-meta);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  text-decoration: none;
}

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

/* ============================================================
   BACK TO TOP
   ============================================================ */
#back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 38px;
  height: 38px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans), transform var(--trans);
  z-index: 90;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

#back-to-top:hover { transform: translateY(-3px); }

/* ============================================================
   SEARCH RESULTS PAGE
   ============================================================ */
.search-header {
  padding: 1.5rem 0;
  margin-bottom: 1rem;
}

.search-header h1 {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--text-meta);
  font-weight: 400;
}

.search-header strong { color: var(--text-head); }

/* ============================================================
   404 PAGE
   ============================================================ */
.not-found-wrap {
  text-align: center;
  padding: 5rem 1rem;
  max-width: 480px;
  margin: 0 auto;
}

.not-found-code {
  font-family: var(--font-ui);
  font-size: 5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.not-found-wrap h2 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--text-head);
  margin-bottom: 0.75rem;
}

.not-found-wrap p {
  color: var(--text-meta);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.btn-home {
  background: var(--accent);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--r);
  text-decoration: none;
  display: inline-block;
  transition: background var(--trans);
}

.btn-home:hover { background: var(--accent-dim); color: #fff; }

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

.no-results {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-meta);
}

.no-results h2 { color: var(--text-head); font-family: var(--font-head); margin-bottom: 0.5rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .content-area {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  html { font-size: 17px; }

  .menu-toggle { display: flex; }
  .main-nav ul { display: none; }
  .header-search { display: none; }

  .header-inner { padding: 0 0.75rem; }

  .post-nav { grid-template-columns: 1fr; }

  .footer-main { grid-template-columns: 1fr; gap: 1.5rem; }

  .single-post-title { font-size: 1.3rem; }

  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  html { font-size: 16px; }
  .post-card { padding: 0.9rem 1rem; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .sidebar, .site-footer,
  .ticker-bar, .cat-nav-bar, .reading-progress,
  #back-to-top, .post-nav, .related-posts,
  .comments-section { display: none !important; }

  body { background: #fff; color: #000; font-size: 12pt; }
  .single-post-wrap { max-width: 100%; padding: 0; }
  .entry-content { color: #000; }
  a { color: #000; text-decoration: underline; }
}
