/* ============================================================
   ZABAVNO.info — общ дизайн слой (тон/типография/навигация)
   Споделен между всички публични страници, за да не се разминават
   при бъдещи промени. Съдържанието/PHP логиката на всяка страница
   остава отделно — тук е само визуалният "chrome".
   ============================================================ */

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

:root {
    --bg: #121316;
    --text: #e2e2e5;
    --text-muted: #9aa0aa;
    --accent: #ffb1c7;
    --border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { color: inherit; }

/* ===== Хедър ===== */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 15px 0;
    background: rgba(18, 19, 22, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo { text-decoration: none !important; display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 30px; height: 30px; flex-shrink: 0; color: var(--accent); display: flex; align-items: center; justify-content: center; }
.logo-text { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -0.3px; color: var(--text); }
.logo .dot { color: var(--text-muted); font-weight: 500; }
.header-right { display: flex; align-items: center; gap: 10px; }

.search-form { display: flex; background: rgba(255,255,255,0.05); border-radius: 999px; padding: 8px 14px; align-items: center; }
.search-form input { border: none; background: transparent; color: var(--text); outline: none; width: 100px; font-family: 'Manrope', sans-serif; transition: 0.3s; }
.search-form input:focus { width: 150px; }

.hamburger-btn { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.05); border: none; color: var(--text); cursor: pointer; font-size: 15px; flex-shrink: 0; transition: 0.2s; }
.hamburger-btn:hover { background: rgba(255,255,255,0.1); }

/* ===== Постоянна лента с категории под хедъра (regionite-стил dual nav) ===== */
.cat-tabs { position: fixed; top: 70px; left: 0; width: 100%; z-index: 998; background: var(--bg); border-bottom: 1px solid var(--border); }
.cat-tabs-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 10px 20px; scrollbar-width: none; }
.cat-tabs-scroll::-webkit-scrollbar { display: none; }
.cat-tab { flex-shrink: 0; display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; text-decoration: none; color: var(--text-muted); background: rgba(255,255,255,0.04); white-space: nowrap; transition: 0.2s; }
.cat-tab:hover { color: var(--text); }
.cat-tab.is-active { color: var(--accent); }

/* ===== Странично изкарващо меню (drawer) ===== */
.drawer { border: none; padding: 0; margin: 0; position: fixed; inset: 0 auto 0 0; width: 300px; max-width: 85vw; height: 100vh; max-height: 100vh; background: var(--bg); color: var(--text); box-shadow: 2px 0 30px rgba(0,0,0,0.4); }
.drawer::backdrop { background: rgba(0,0,0,0.55); backdrop-filter: blur(2px); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.drawer-close { background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; }
.drawer-label { font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin: 20px 20px 8px; }
.drawer-link { display: flex; align-items: center; gap: 12px; padding: 11px 20px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; transition: 0.15s; }
.drawer-link:hover { background: rgba(255,255,255,0.05); }
.drawer-link i { width: 16px; text-align: center; color: var(--text-muted); }

/* ===== Тонален "chip" за категория (MD3-стил) ===== */
.cat-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.2px; text-decoration: none !important; }
.cat-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* ===== Абстрактна органична форма ("blob") за аватари/значки ===== */
.blob-mask { border-radius: 42% 58% 61% 39% / 41% 44% 56% 59%; }

/* ===== Reading-progress лента (тънка лента отгоре, показва напредъка при четене на статия) ===== */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: var(--accent); z-index: 10001; transition: width 0.1s linear; }

@media (max-width: 768px) {
    header { padding: 10px 0; }
    .logo-text { font-size: 16px; }
    .cat-tabs { top: 54px; }
    .search-form { padding: 4px 10px; width: 120px; }
    .search-form input { width: 80px; font-size: 12px; }
}
