/* ============================================
   TrueLifeTales — US Viral Story Blog CSS
   Clean, AdSense-friendly, High CTR Design
   ============================================ */

/* Fonts loaded via <link> in HTML (no @import — faster) */

/* ===== TOKENS ===== */
:root {
  --bg:        #f7f7f5;
  --white:     #ffffff;
  --border:    #e5e3df;
  --text:      #1a1a1a;
  --text-2:    #4a4a4a;
  --text-3:    #888;
  --accent:    #c0392b;       /* deep red — American news feel */
  --accent-2:  #e74c3c;
  --blue:      #1877F2;       /* Facebook blue */
  --warm:      #e8730a;       /* warm orange */
  --green:     #27ae60;
  --font-h:    'Merriweather', Georgia, serif;
  --font-b:    'Source Sans 3', system-ui, sans-serif;
  --max:       1180px;
  --r:         8px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-b); background: var(--bg); color: var(--text); line-height: 1.6; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

/* ===== CONTAINER ===== */
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ===== TOP BAR ===== */
.topbar {
  background: var(--accent); color: white;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.03em;
  text-align: center; padding: 6px 20px;
}
.topbar-divider { margin: 0 12px; opacity: 0.5; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 500;
  background: var(--white);
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.nav-wrap {
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 58px;
}
.logo {
  font-family: var(--font-h);
  font-size: 1.45rem; font-weight: 700;
  color: var(--accent); letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo.light { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  font-size: 0.82rem; font-weight: 500; color: var(--text-2);
  padding: 8px 10px; border-radius: 4px;
  display: block; transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-links > li > a:hover { background: rgba(192,57,43,0.07); color: var(--accent); }
.nav-links > li > a.active { color: var(--accent); font-weight: 600; }



.nav-right { display: flex; align-items: center; gap: 8px; }
.search-btn { background: none; border: none; color: var(--text-3); padding: 6px; border-radius: 50%; transition: color 0.2s; }
.search-btn:hover { color: var(--accent); }
.hamburger { display: none; flex-direction: column; gap: 4.5px; background: none; border: none; padding: 6px; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 490;
  background: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  transform: translateX(-100%); transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { font-family: var(--font-h); font-size: 1.8rem; color: var(--text-2); transition: color 0.2s; }
.mobile-nav a:hover { color: var(--accent); }

/* ===== CATEGORY BADGES ===== */
.cat-badge {
  display: inline-block; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 3px; color: white;
}
.cat-rel    { background: var(--accent); }
.cat-drama  { background: #8e44ad; }
.cat-warm   { background: var(--green); }
.cat-revenge{ background: var(--warm); }
.cat-family { background: #2980b9; }

/* ===== HERO ===== */
.hero { padding: 28px 0 0; max-width: var(--max); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.hero-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }

.hero-main {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
}
.hero-img-wrap { position: relative; height: 360px; overflow: hidden; }
.hero-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.hero-main:hover .hero-img { transform: scale(1.03); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
}
.hero-img-wrap .cat-badge { position: absolute; top: 14px; left: 14px; }
.hero-body { padding: 24px; }
.hero-label { font-size: 0.72rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.hero-title {
  font-family: var(--font-h); font-size: 1.55rem; font-weight: 700;
  color: var(--text); line-height: 1.35; margin-bottom: 12px;
}
.hero-title:hover { color: var(--accent); }
.hero-excerpt { font-size: 0.95rem; color: var(--text-2); line-height: 1.7; margin-bottom: 18px; }
.hero-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.hero-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.hero-author { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); }
.hero-date { display: block; font-size: 0.75rem; color: var(--text-3); }
.btn-read {
  display: inline-block; background: var(--accent); color: white;
  font-size: 0.875rem; font-weight: 600; padding: 11px 24px; border-radius: 4px;
  transition: background 0.2s, transform 0.15s;
}
.btn-read:hover { background: var(--accent-2); transform: translateX(3px); }

/* Hero Side */
.hero-side { display: flex; flex-direction: column; gap: 16px; }
.side-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow 0.2s;
}
.side-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.side-img-wrap { position: relative; height: 150px; overflow: hidden; }
.side-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.side-card:hover .side-img { transform: scale(1.04); }
.side-img-wrap .cat-badge { position: absolute; top: 10px; left: 10px; }
.side-body { padding: 16px; }
.side-title { font-family: var(--font-h); font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 10px; }
.side-title:hover { color: var(--accent); }
.side-meta { display: flex; gap: 8px; align-items: center; font-size: 0.75rem; color: var(--text-3); margin-bottom: 10px; }
.dot { color: var(--border); }
.read-more-link { font-size: 0.82rem; font-weight: 600; color: var(--accent); transition: letter-spacing 0.2s; }
.read-more-link:hover { letter-spacing: 0.03em; }

/* ===== AD BANNER ===== */
.ad-banner { padding: 16px 20px; background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ad-label { font-size: 0.65rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; text-align: center; }
.ad-label.center { text-align: center; margin-bottom: 16px; }
.ad-placeholder { text-align: center; }
.ad-mock {
  display: inline-flex; align-items: center; justify-content: center;
  background: #f0f0f0; border: 1px dashed #ccc;
  color: #aaa; font-size: 0.8rem;
  width: 728px; max-width: 100%; height: 90px; border-radius: 4px;
}
.ad-mock.tall { width: 300px; height: 250px; }

/* ===== TRENDING BAR ===== */
.trending-bar {
  background: #1a1a1a; color: white;
  padding: 10px 0; border-bottom: 2px solid var(--accent);
}
.trending-bar .container { display: flex; align-items: center; gap: 16px; overflow: hidden; }
.trending-label { font-size: 0.78rem; font-weight: 700; color: var(--accent-2); white-space: nowrap; flex-shrink: 0; }
.trending-links { display: flex; gap: 16px; overflow: hidden; white-space: nowrap; }
.trending-links a { font-size: 0.78rem; color: #ccc; transition: color 0.2s; flex-shrink: 0; }
.trending-links a:hover { color: white; }
.trending-links span { color: #555; }

/* ===== STORIES SECTION ===== */
.stories-sec { padding: 40px 0; }
.stories-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.sec-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; border-bottom: 2px solid var(--border); padding-bottom: 16px; }
.sec-title { font-family: var(--font-h); font-size: 1.4rem; font-weight: 700; color: var(--text); }
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.ftab {
  font-size: 0.78rem; font-weight: 600; padding: 5px 14px;
  border-radius: 99px; border: 1.5px solid var(--border);
  background: var(--white); color: var(--text-2); transition: all 0.15s;
}
.ftab.active { background: var(--accent); border-color: var(--accent); color: white; }
.ftab:hover:not(.active) { border-color: var(--accent); color: var(--accent); }

/* Story Cards Grid */
.stories-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.story-card {
  display: grid; grid-template-columns: 1fr 160px;
  gap: 18px; align-items: start;
  padding: 20px 0; border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.story-card:hover { background: rgba(255,255,255,0.7); padding-left: 8px; padding-right: 8px; margin: 0 -8px; border-radius: 6px; }
.story-card:first-child { border-top: 1px solid var(--border); }
.story-cat { font-size: 0.68rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 7px; }
.story-title {
  font-family: var(--font-h); font-size: 1.05rem; font-weight: 700;
  color: var(--text); line-height: 1.4; margin-bottom: 7px;
  transition: color 0.15s;
}
.story-card:hover .story-title { color: var(--accent); }
.story-excerpt { font-size: 0.875rem; color: var(--text-2); line-height: 1.6; margin-bottom: 10px; }
.story-meta { font-size: 0.75rem; color: var(--text-3); display: flex; gap: 10px; align-items: center; }
.story-thumb { border-radius: 6px; overflow: hidden; aspect-ratio: 4/3; }
.story-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.story-card:hover .story-thumb img { transform: scale(1.06); }

/* Load More */
.load-wrap { padding: 28px 0; text-align: center; }
.btn-load {
  border: 2px solid var(--accent); color: var(--accent);
  background: transparent; font-size: 0.875rem; font-weight: 600;
  padding: 11px 36px; border-radius: 4px;
  transition: all 0.2s;
}
.btn-load:hover { background: var(--accent); color: white; }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 80px; }
.sidebar-ad { text-align: center; }
.sidebar-box {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px;
}
.sidebar-title { font-family: var(--font-h); font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }
.most-read-list { display: flex; flex-direction: column; gap: 14px; }
.most-read-item { display: flex; gap: 12px; align-items: flex-start; }
.most-read-num { font-size: 1.4rem; font-weight: 800; color: #ddd; flex-shrink: 0; line-height: 1; }
.most-read-title { font-size: 0.875rem; font-weight: 600; color: var(--text); line-height: 1.4; transition: color 0.15s; }
.most-read-title:hover { color: var(--accent); }

/* Newsletter Mini */
.nl-mini { background: #fff8f7; border-color: #fdd; }
.nl-mini-title { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.nl-mini-sub { font-size: 0.8rem; color: var(--text-3); margin-bottom: 14px; }
.mini-input {
  width: 100%; padding: 9px 12px; border: 1.5px solid var(--border);
  border-radius: 4px; font-family: inherit; font-size: 0.875rem;
  background: white; outline: none; transition: border-color 0.2s;
  margin-bottom: 8px;
}
.mini-input:focus { border-color: var(--accent); }
.mini-btn {
  width: 100%; padding: 10px; background: var(--accent); color: white;
  border: none; border-radius: 4px; font-size: 0.875rem; font-weight: 600;
  transition: background 0.2s;
}
.mini-btn:hover { background: var(--accent-2); }

/* Facebook Widget */
.fb-widget { border-color: #d0e4ff; background: #f0f7ff; }
.fb-widget-title { font-weight: 700; font-size: 0.9rem; color: var(--text); display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.fb-widget-sub { font-size: 0.8rem; color: var(--text-3); margin-bottom: 14px; }
.fb-follow-btn {
  display: block; width: 100%; text-align: center;
  background: var(--blue); color: white; font-size: 0.875rem; font-weight: 600;
  padding: 10px; border-radius: 4px; transition: opacity 0.2s;
}
.fb-follow-btn:hover { opacity: 0.88; }

/* ===== NEWSLETTER ===== */
.newsletter-sec { padding: 60px 0; background: var(--text); }
.nl-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; max-width: 900px; margin: 0 auto;
}
.nl-tag { font-size: 0.75rem; font-weight: 700; color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.nl-heading { font-family: var(--font-h); font-size: 1.8rem; font-weight: 700; color: white; line-height: 1.3; margin-bottom: 14px; }
.nl-desc { font-size: 0.9rem; color: #aaa; line-height: 1.7; }
.nl-input {
  width: 100%; padding: 12px 14px; border: 1.5px solid #333;
  border-radius: 4px; background: #2a2a2a; color: white;
  font-family: inherit; font-size: 0.9rem; outline: none;
  margin-bottom: 10px; transition: border-color 0.2s;
}
.nl-input:focus { border-color: var(--accent); }
.nl-input::placeholder { color: #666; }
.nl-submit {
  width: 100%; padding: 14px; background: var(--accent); color: white;
  border: none; border-radius: 4px; font-size: 0.95rem; font-weight: 700;
  transition: background 0.2s; cursor: pointer;
}
.nl-submit:hover { background: var(--accent-2); }
.nl-submit.done { background: var(--green); }
.nl-fine { font-size: 0.72rem; color: #666; text-align: center; margin-top: 10px; }

/* ===== FOOTER ===== */
.footer { background: #111; color: #aaa; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; margin-bottom: 40px; }
.footer-brand p { font-size: 0.875rem; line-height: 1.65; margin-top: 12px; max-width: 260px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.soc-btn {
  font-size: 0.75rem; font-weight: 700; padding: 6px 14px; border-radius: 4px;
  transition: opacity 0.2s;
}
.soc-btn:hover { opacity: 0.8; }
.soc-btn.fb { background: var(--blue); color: white; }
.soc-btn.tw { background: #1da1f2; color: white; }
.soc-btn.pi { background: #e60023; color: white; }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.footer-links div { display: flex; flex-direction: column; gap: 10px; }
.footer-links strong { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #555; margin-bottom: 4px; }
.footer-links a { font-size: 0.875rem; color: #777; transition: color 0.15s; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid #222; padding-top: 24px; text-align: center; font-size: 0.78rem; color: #555; display: flex; flex-direction: column; gap: 6px; }

/* ===== BACK TO TOP ===== */
.back-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  width: 40px; height: 40px; border-radius: 4px;
  background: var(--accent); color: white; border: none;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.3s;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--accent-2); }

/* ===== FADE IN ===== */
.fade { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade.in { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { flex-direction: row; }
  .side-card { flex: 1; }
  .stories-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .nl-card { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-side { flex-direction: column; }
  .story-card { grid-template-columns: 1fr 120px; gap: 12px; }
  .story-thumb { display: block; }
  .story-thumb img { height: 90px; }
  .story-title { font-size: 0.95rem; }
  .story-excerpt { display: none; }
  .ad-mock { width: 100%; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .article-h1 { font-size: 1.5rem; }
  .article-page { padding: 24px 16px; }

  /* ── Compact Footer ── */
  .footer { padding: 16px 0 10px; }
  .footer-brand { margin-bottom: 0; }
  .footer-brand .logo { font-size: 0.9rem; }
  .footer-grid { gap: 10px; margin-bottom: 12px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .footer-links div { gap: 4px; }
  .footer-links strong { font-size: 0.65rem; margin-bottom: 0; }
  .footer-links a { font-size: 0.78rem; }
  .footer-bottom { padding-top: 10px; font-size: 0.65rem; }

  /* ── Hide big sidebar ad on mobile ── */
  .sidebar-ad { display: none; }

  /* ── Article inline images: cap height on mobile ── */
  .article-body img,
  .article-page img:not(.article-hero-img):not([width="44"]) {
    max-height: 280px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .trending-links { display: none; }
  .story-card { grid-template-columns: 1fr; }
  .story-thumb { display: none; }
  .related-grid { grid-template-columns: 1fr; }
  .share-strip { gap: 8px; }
  .share-btn { font-size: 0.75rem; padding: 7px 12px; }
}


/* ===== ARTICLE PAGE ===== */
.article-page { max-width: 720px; margin: 0 auto; padding: 40px 20px; }
.article-cat { font-size: 0.72rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.article-cat a { color: var(--accent); }
.article-h1 { font-family: var(--font-h); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; color: var(--text); line-height: 1.25; margin-bottom: 16px; }
.article-dek { font-size: 1.1rem; color: var(--text-2); line-height: 1.65; margin-bottom: 24px; font-style: italic; border-left: 3px solid var(--accent); padding-left: 16px; }
.article-byline { display: flex; align-items: center; gap: 12px; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.article-byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.byline-name { font-weight: 700; font-size: 0.9rem; }
.byline-meta { font-size: 0.78rem; color: var(--text-3); display: block; }
.share-strip { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; padding: 8px 16px; border-radius: 4px; border: none; cursor: pointer; }
.share-fb { background: var(--blue); color: white; }
.share-copy { background: var(--border); color: var(--text); }
.article-hero-img { width: 100%; border-radius: 8px; margin-bottom: 28px; aspect-ratio: 16/9; object-fit: cover; }
.article-body { font-size: 1rem; line-height: 1.85; color: var(--text); }
.article-body p { margin-bottom: 20px; }
.article-body h2 { font-family: var(--font-h); font-size: 1.35rem; font-weight: 700; margin: 36px 0 14px; color: var(--text); }
.inline-ad { background: #f5f5f5; border: 1px dashed #ccc; text-align: center; padding: 20px; margin: 32px 0; border-radius: 6px; color: #aaa; font-size: 0.8rem; }
.related-section { border-top: 2px solid var(--border); padding-top: 32px; margin-top: 48px; }
.related-title { font-family: var(--font-h); font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card { border-radius: 6px; overflow: hidden; background: var(--white); border: 1px solid var(--border); display: block; }
.related-card img { width: 100%; height: 120px; object-fit: cover; }
.related-card-body { padding: 12px; }
.related-card-title { font-size: 0.875rem; font-weight: 700; line-height: 1.4; color: var(--text); transition: color 0.15s; }
.related-card:hover .related-card-title { color: var(--accent); }

/* ===== SIMPLE PAGE (about/legal/category) ===== */
.page-wrap { max-width: 820px; margin: 0 auto; padding: 48px 20px; }
.page-title { font-family: var(--font-h); font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.page-sub { color: var(--text-3); font-size: 0.9rem; margin-bottom: 32px; }
.page-body { font-size: 0.95rem; line-height: 1.8; color: var(--text-2); }
.page-body h2 { font-family: var(--font-h); font-size: 1.25rem; color: var(--text); margin: 32px 0 12px; }
.page-body p { margin-bottom: 16px; }
.page-body ul { margin: 0 0 16px 22px; }
.page-body a { color: var(--accent); }
.cat-page-head { 
  background: linear-gradient(135deg, var(--accent) 0%, #8b1a10 100%);
  border-radius: var(--r); padding: 36px 32px; margin-bottom: 28px; color: white;
}
.cat-page-head .page-title { color: white; font-size: 2.2rem; margin-bottom: 10px; }
.cat-page-head .page-sub { color: rgba(255,255,255,0.75); font-size: 1rem; margin-bottom: 0; }

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(20,20,20,0.55); backdrop-filter: blur(3px);
  display: none; align-items: flex-start; justify-content: center;
  padding: 90px 20px 40px;
}
.search-overlay.open { display: flex; }
.search-panel { background: var(--white); border-radius: var(--r); width: 100%; max-width: 560px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); overflow: hidden; }
.search-input-row { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.search-input { flex: 1; border: none; outline: none; font-family: inherit; font-size: 1rem; background: transparent; color: var(--text); }
.search-close { background: none; border: none; color: var(--text-3); font-size: 1.2rem; line-height: 1; padding: 4px 8px; }
.search-close:hover { color: var(--accent); }
.search-results { max-height: 50vh; overflow-y: auto; }
.search-result { display: block; padding: 13px 18px; border-bottom: 1px solid var(--border); }
.search-result:hover { background: #fdf2f1; }
.search-result-cat { font-size: 0.65rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.search-result-title { font-size: 0.9rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.search-empty { padding: 22px 18px; font-size: 0.875rem; color: var(--text-3); text-align: center; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 16px);
  background: #1a1a1a; color: white; font-size: 0.85rem; font-weight: 500;
  padding: 11px 22px; border-radius: 6px; z-index: 700;
  opacity: 0; visibility: hidden; transition: all 0.3s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
