/*
Theme Name: PremiumLiteV1
Theme URI: https://tblg.site/
Author: TBLG Magazine
Description: Fast, mobile-first news theme for TBLG MAGAZINE.
Version: 1.0.0
Text Domain: premiumlitev1
*/

:root{
  --bg:#ffffff;
  --text:#0b1220;
  --muted:#5b6475;
  --border:#e9edf3;
  --card:#ffffff;
  --shadow: 0 8px 22px rgba(10, 20, 40, .06);
  --radius: 16px;
  --max: 1140px;
  --accent:#111827;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
  text-rendering:optimizeLegibility;
}
img, video{max-width:100%; height:auto; display:block}
a{color:inherit; text-decoration:none}
a:hover{opacity:.9}
.container{max-width:var(--max); margin:0 auto; padding:0 14px}

.skip-link{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{left:14px; top:14px; width:auto; height:auto; padding:10px 12px; background:#000; color:#fff; border-radius:10px; z-index:9999}

/* Header */
.site-header{
  position:sticky; top:0; z-index:999;
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  min-height:62px;
  gap:12px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  min-width:160px;
}
.brand-mark{
  width:38px; height:38px; border-radius:12px;
  display:grid; place-items:center;
  background:linear-gradient(135deg,#0f172a,#111827);
  color:#fff; font-weight:800; letter-spacing:.6px;
  box-shadow: var(--shadow);
}
.brand-title{
  display:flex; flex-direction:column; line-height:1.05;
}
.brand-title strong{font-size:14px; letter-spacing:.6px}
.brand-title span{font-size:12px; color:var(--muted)}

.nav-desktop{flex:1; display:flex; justify-content:center}
.nav-desktop ul{
  margin:0; padding:0; list-style:none;
  display:flex; gap:20px; align-items:center;
}
.nav-desktop a{
  font-weight:700; font-size:13px; letter-spacing:.4px;
  padding:10px 10px; border-radius:12px;
}
.nav-desktop a:hover{background:#f5f7fb}

.header-actions{
  display:flex; align-items:center; justify-content:flex-end;
  min-width:160px;
  gap:10px;
}
.burger{
  display:none;
  border:1px solid var(--border);
  background:#fff;
  width:42px; height:42px;
  border-radius:14px;
  cursor:pointer;
}
.burger:active{transform:scale(.98)}
.burger svg{width:22px; height:22px}

.nav-mobile{
  display:none;
  border-top:1px solid var(--border);
  background:#fff;
}
.nav-mobile.open{display:block}
.nav-mobile ul{margin:0; padding:10px 14px 14px; list-style:none; display:flex; flex-direction:column; gap:6px}
.nav-mobile a{display:block; padding:12px 12px; border-radius:14px; font-weight:800; letter-spacing:.4px}
.nav-mobile a:hover{background:#f5f7fb}

/* Layout */
.main{padding:18px 0 26px}
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow: 0 2px 0 rgba(10,20,40,.02);
}
.thumb{
  width:100%;
  aspect-ratio: 16 / 9;
  background:#f1f4f9;
  overflow:hidden;
}
.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.post-meta{
  display:flex; align-items:center; gap:10px;
  color:var(--muted);
  font-size:12px;
}
.badge{
  display:inline-flex; align-items:center;
  border:1px solid var(--border);
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.3px;
  background:#fff;
}
.post-title{
  font-size:18px;
  line-height:1.25;
  margin:10px 0 0;
  font-weight:900;
  letter-spacing:.2px;
}
.card-body{padding:12px 12px 14px}

/* Home cards */
.home-item{grid-column: span 4;}
@media (max-width: 980px){
  .home-item{grid-column: span 6;}
}
@media (max-width: 640px){
  .home-item{grid-column: span 12;}
}

/* Single */
.article{
  max-width: 820px;
  margin: 0 auto;
}
.article-top{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.article-site{
  display:flex; align-items:center; gap:10px;
}
.article-site .brand-mark{width:34px; height:34px; border-radius:12px}
.article-site strong{font-size:13px; letter-spacing:.6px}
.article-site span{font-size:12px; color:var(--muted)}
.article h1{
  margin:10px 0 0;
  font-size: 30px;
  line-height:1.15;
  font-weight:950;
}
@media (max-width:640px){
  .article h1{font-size:24px}
}
.featured{
  margin:14px 0 12px;
  border-radius: 18px;
  overflow:hidden;
  border:1px solid var(--border);
  background:#f1f4f9;
}
.featured img{
  width:100%;
  height:auto;
}
.entry{
  font-size:16px;
  color:var(--text);
}
.entry p{margin:0 0 14px}
.entry h2,.entry h3{line-height:1.2}
.entry a{color:#0b5bd3; text-decoration:underline; text-underline-offset:3px}
.entry ul, .entry ol{padding-left:18px}
.entry blockquote{
  margin:16px 0;
  padding:14px 16px;
  border-left:4px solid #111827;
  background:#f7f9fd;
  border-radius:14px;
}
.entry iframe{max-width:100%}

/* Related */
.section-title{
  display:flex; align-items:center; justify-content:space-between;
  margin:20px 0 10px;
}
.section-title h2{
  font-size:16px; margin:0; font-weight:950; letter-spacing:.4px;
}
.related-grid{display:grid; grid-template-columns: repeat(3, 1fr); gap:12px}
@media (max-width: 900px){ .related-grid{grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 640px){ .related-grid{grid-template-columns: 1fr;} }

/* Footer */
.site-footer{
  border-top:1px solid var(--border);
  padding:18px 0;
  color:var(--muted);
}
.footer-inner{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  flex-wrap:wrap;
}
.footer-links{display:flex; gap:14px; flex-wrap:wrap}
.footer-links a{font-weight:800; font-size:12px; letter-spacing:.4px}

/* Pagination */
.pagination{
  display:flex; gap:10px; justify-content:center; margin:18px 0 0;
}
.pagination .page-numbers{
  border:1px solid var(--border);
  padding:10px 12px;
  border-radius:14px;
  font-weight:900;
  font-size:13px;
}
.pagination .current{background:#111827; color:#fff; border-color:#111827}