/*
Theme Name: Loko Theme
Description: Red & black fan-club theme for LOKO BG – Fan Club Lokomotiv Sofia. Pairs with the Loko Data plugin.
Version: 1.0.0
Author: Loko.bg
Text Domain: loko
Requires PHP: 8.1
*/
:root{--loko-red:#d7141a;--loko-red-dark:#a80f14;--loko-black:#121212;--loko-bg:#f5f5f7;--loko-surface:#fff;--loko-text:#161616;--loko-muted:#6b6b72;--loko-line:#e5e5ea;--font-head:"Oswald","Arial Narrow",system-ui,sans-serif;--font-body:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;--wrap:1140px}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;font-family:var(--font-body);font-size:16px;line-height:1.55;color:var(--loko-text);background:var(--loko-bg)}
img{max-width:100%;height:auto}
a{color:var(--loko-red)}a:hover{color:var(--loko-red-dark)}
h1,h2,h3,h4{font-family:var(--font-head);font-weight:600;line-height:1.15;margin:0 0 .5em;letter-spacing:.01em}
h1{font-size:clamp(1.8rem,4vw,2.6rem)}h2{font-size:clamp(1.35rem,3vw,1.8rem)}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 clamp(14px,3vw,28px)}
.skip{position:absolute;left:-999px;top:0;background:#fff;padding:.5rem}.skip:focus{left:8px;z-index:99}
/* header */
.site-head{background:var(--loko-black);color:#fff;border-top:4px solid var(--loko-red);position:sticky;top:0;z-index:50}
.site-head .wrap{display:flex;align-items:center;gap:1rem;min-height:66px}
.brand{display:flex;align-items:center;gap:.7rem;color:#fff;text-decoration:none;font-family:var(--font-head);text-transform:uppercase;letter-spacing:.05em;line-height:1.05}
.brand img,.brand svg{width:48px;height:48px;border-radius:50%;flex:none}
.brand b{font-size:1.25rem;display:block}.brand small{font-size:.7rem;color:#c9c9cf;font-family:var(--font-body);text-transform:none;letter-spacing:0;display:block}
.nav-toggle{display:none;margin-left:auto;background:none;border:2px solid #444;color:#fff;border-radius:8px;padding:.4rem .6rem;font:inherit;cursor:pointer}
.site-nav{margin-left:auto}
.site-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:.15rem;flex-wrap:wrap}
.site-nav a{display:block;padding:.55rem .75rem;color:#e9e9ee;text-decoration:none;font-weight:600;font-size:.92rem;border-radius:8px;position:relative}
.site-nav a:hover{background:#242424;color:#fff}
.site-nav .current-menu-item>a,.site-nav .current_page_item>a,.site-nav .current-menu-parent>a{color:#fff}
.site-nav .current-menu-item>a::after,.site-nav .current_page_item>a::after{content:"";position:absolute;left:.75rem;right:.75rem;bottom:.3rem;height:2px;background:var(--loko-red)}
.live-pill{margin-left:.5rem;display:inline-flex;align-items:center;gap:.35rem;padding:.4rem .7rem;border-radius:999px;background:var(--loko-red);color:#fff;text-decoration:none;font-weight:700;font-size:.8rem}
.live-pill i{width:7px;height:7px;border-radius:50%;background:#fff;animation:loko-pulse 1.2s infinite}
@media (max-width:900px){.nav-toggle{display:block}.site-nav{display:none;position:absolute;left:0;right:0;top:100%;background:var(--loko-black);border-top:1px solid #2a2a2a;padding:.5rem clamp(14px,3vw,28px) 1rem}.site-nav.is-open{display:block}.site-nav ul{flex-direction:column}.site-nav a{padding:.7rem .5rem;font-size:1rem}.live-pill{display:none}}
/* main */
.site-main{padding:1.5rem 0 3rem;min-height:60vh}
.page-head{margin:.5rem 0 1.25rem}
.page-head h1{margin:0}
.page-head--home h1{font-size:clamp(1.4rem,3vw,1.9rem);color:#333;margin:.25rem 0 0}
.section{margin:2.25rem 0}
.section__head{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin-bottom:.75rem}
.section__head h2{margin:0}
.section__head a{font-size:.9rem;font-weight:600;text-decoration:none}
.cols-2{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}
@media (max-width:820px){.cols-2{grid-template-columns:1fr}}
.entry-content>*:first-child{margin-top:0}
.entry-content p{max-width:72ch}
.loko-lede{font-size:1.15rem;line-height:1.6;color:#2a2a2e;max-width:72ch;margin:0 0 1.25rem}
.loko-faq{margin:2.5rem 0 1rem;max-width:860px}
.loko-faq__item{background:var(--loko-surface);border:1px solid var(--loko-line);border-radius:10px;padding:.2rem 1rem;margin:.5rem 0}
.loko-faq__item summary{cursor:pointer;font-weight:600;padding:.6rem 0;list-style:none;display:flex;justify-content:space-between;gap:1rem}
.loko-faq__item summary::-webkit-details-marker{display:none}
.loko-faq__item summary::after{content:"+";color:var(--loko-red);font-weight:700;font-size:1.2rem;line-height:1}
.loko-faq__item[open] summary::after{content:"–"}
.loko-faq__item p{margin:0 0 .8rem;color:#333;max-width:72ch}
.loko-updated{font-size:.8rem;color:var(--loko-muted);margin:1.5rem 0 0}
.loko-facts-table table{border-collapse:collapse;background:var(--loko-surface);border:1px solid var(--loko-line);border-radius:12px;overflow:hidden;width:100%;max-width:640px}
.loko-facts-table td{padding:.6rem .9rem;border-bottom:1px solid var(--loko-line)}.loko-facts-table td:first-child{color:var(--loko-muted);font-weight:600;width:40%}
/* posts */
.post-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1rem}
.post-card{background:var(--loko-surface);border:1px solid var(--loko-line);border-radius:12px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.post-card img{width:100%;aspect-ratio:16/9;object-fit:cover}
.post-card__body{padding:1rem;display:flex;flex-direction:column;gap:.4rem}
.post-card h3{font-size:1.15rem;margin:0}.post-card h3 a{color:inherit;text-decoration:none}.post-card h3 a:hover{color:var(--loko-red)}
.post-card time{font-size:.78rem;color:var(--loko-muted)}
.post-card p{margin:0;color:#444;font-size:.92rem}
.entry-meta{color:var(--loko-muted);font-size:.85rem;margin-bottom:1rem}
.single-post .entry-content,.page .entry-content{background:var(--loko-surface);border:1px solid var(--loko-line);border-radius:12px;padding:clamp(1rem,3vw,2rem)}
.page-template-default .entry-content:has(.loko-hero),.page .entry-content:has(> .loko-tabs),.page .entry-content:has(> .loko-table-wrap),.page .entry-content:has(> .loko-grid),.page .entry-content:has(> [data-live-list]){background:none;border:0;padding:0}
.single-loko_match .entry-content,.single-loko_player .entry-content{background:none;border:0;padding:0}
.pagination{display:flex;gap:.4rem;flex-wrap:wrap;margin-top:1.5rem}.pagination a,.pagination span{padding:.45rem .8rem;border-radius:8px;background:var(--loko-surface);border:1px solid var(--loko-line);text-decoration:none}.pagination .current{background:var(--loko-red);color:#fff;border-color:var(--loko-red)}
/* footer */
.site-foot{background:var(--loko-black);color:#c9c9cf;padding:2.5rem 0 1.5rem;margin-top:2rem;border-top:4px solid var(--loko-red)}
.site-foot .wrap{display:grid;grid-template-columns:2fr 1fr 1fr;gap:2rem}
.site-foot .foot-h{color:#fff;margin:0 0 .6rem;font-family:var(--font-head);font-weight:600;font-size:1.05rem;letter-spacing:.02em}
.site-foot ul{list-style:none;padding:0;margin:0}.site-foot li{margin:.25rem 0}
.site-foot a{color:#e9e9ee;text-decoration:none}.site-foot a:hover{color:#fff;text-decoration:underline}
.site-foot .brand{margin-bottom:.75rem}
.site-foot p{margin:.4rem 0;font-size:.9rem}
.site-foot__bottom{grid-column:1/-1;border-top:1px solid #2a2a2a;padding-top:1rem;font-size:.8rem;color:#8d8d94;display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem}
@media (max-width:720px){.site-foot .wrap{grid-template-columns:1fr}}
/* 404 */
.error-box{text-align:center;padding:4rem 1rem}
