/*
Theme Name: NaijaTopCelebs
Theme URI: https://naijatopcelebs.com.ng/
Author: NaijaTopCelebs
Description: A fast, mobile-first WordPress theme for Nigerian celebrity news and entertainment. Configurable homepage, editorial category sections, AdSense-ready ad slots, built-in related and popular posts, dark mode, and SEO-plugin-aware metadata.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: naijatopcelebs
Tags: news, blog, entertainment, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready
*/

/* ---------- Tokens (colours/fonts are overridden from the Customizer) ---------- */
:root{
  --navy:#0b1f4b; --navy-2:#13306f; --blue:#1a5fe0; --green:#11813a;
  --bg:#ffffff; --surface:#f3f5f9; --surface-2:#e8edf6; --text:#1f2530; --muted:#5b6578; --border:#dfe4ee;
  --on-navy:#ffffff; --link:#1a5fe0;
  --font:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
  --base:17px; --radius:6px; --wrap:1220px; --gap:24px;
  --ad-h:250px; --header-h:60px;
}
:root[data-theme="dark"]{
  --bg:#0e1424; --surface:#151c30; --surface-2:#1c2542; --text:#e7eaf2; --muted:#9aa3b8; --border:#263050; --link:#7fadff;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:calc(var(--header-h) + 16px)}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:var(--base);line-height:1.6;overflow-x:hidden}
img,video,iframe,svg{max-width:100%;height:auto}
a{color:var(--link);text-decoration-thickness:1px;text-underline-offset:2px}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px;border-radius:2px}
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}
.skip-link:focus{clip:auto;clip-path:none;height:auto;width:auto;margin:0;left:8px;top:8px;z-index:1000;background:#fff;color:#000;padding:10px 14px;font-weight:700}
.wrap{width:100%;max-width:var(--wrap);margin:0 auto;padding:0 16px}
h1,h2,h3,h4{line-height:1.2;margin:0 0 .5em;font-weight:800;letter-spacing:-.01em}
p{margin:0 0 1em}
button{font:inherit}

/* ---------- Brand star (logo motif) ---------- */
.star{display:inline-block;width:1em;height:1em;background:currentColor;clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%)}

/* ---------- Header ---------- */
.topbar{background:var(--navy);color:#cfd8ee;font-size:13px}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:34px}
.topbar a{color:#cfd8ee;text-decoration:none;margin-left:14px}
.topbar a:hover{color:#fff;text-decoration:underline}
.topbar .tagline{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.site-header{position:sticky;top:var(--wp-admin--admin-bar--height,0px);z-index:50;background:var(--bg);border-bottom:3px solid var(--navy)}
:root[data-theme="dark"] .site-header{border-bottom-color:var(--blue)}
.header-main{display:flex;align-items:center;gap:14px;min-height:var(--header-h)}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--navy);flex:0 0 auto}
:root[data-theme="dark"] .brand{color:#fff}
.brand .mark{display:grid;place-items:center;width:38px;height:38px;border-radius:8px;background:var(--green);color:#fff;font-size:22px}
.brand .mark .star{background:var(--navy);box-shadow:none;color:var(--navy)}
:root[data-theme="dark"] .brand .mark .star{background:#9cc0ff}
.brand .name{font-weight:900;font-size:21px;letter-spacing:-.02em;line-height:1}
.brand .name b{color:var(--green);font-weight:900}
.custom-logo-link img{display:block;max-height:46px;width:auto}
.primary-nav{margin-left:auto}
.primary-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:2px;align-items:center}
.primary-nav li{position:relative}
.primary-nav a{display:block;padding:10px 11px;color:var(--text);text-decoration:none;font-weight:700;font-size:15px;border-radius:4px}
.primary-nav a:hover,.primary-nav .current-menu-item>a,.primary-nav .current-cat>a{color:var(--blue);background:var(--surface)}
.primary-nav ul ul{position:absolute;left:0;top:100%;min-width:200px;background:var(--bg);border:1px solid var(--border);border-top:3px solid var(--green);box-shadow:0 8px 20px rgba(11,31,75,.12);display:none;flex-direction:column;align-items:stretch;padding:6px;z-index:60}
.primary-nav li:hover>ul,.primary-nav li:focus-within>ul{display:flex}
.header-tools{display:flex;gap:6px;align-items:center}
.icon-btn{width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:50%;cursor:pointer}
.icon-btn:hover{background:var(--surface)}
.icon-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.menu-toggle{display:none}
.search-panel{display:none;background:var(--surface);border-bottom:1px solid var(--border);padding:12px 0}
.search-panel.is-open{display:block}
.search-form{display:flex;gap:8px}
.search-form input[type=search]{flex:1;min-width:0;height:46px;padding:0 14px;border:2px solid var(--border);border-radius:var(--radius);background:var(--bg);color:var(--text);font:inherit}
.search-form input[type=search]:focus{border-color:var(--blue);outline:none}
.btn,.search-form button,.comment-form input[type=submit]{display:inline-block;background:var(--green);color:#fff;border:0;border-radius:var(--radius);padding:0 20px;min-height:46px;line-height:46px;font-weight:800;text-decoration:none;cursor:pointer}
.btn:hover,.search-form button:hover,.comment-form input[type=submit]:hover{filter:brightness(1.08);color:#fff}
.btn-sm{min-height:38px;line-height:38px;padding:0 16px;font-size:15px}

/* ---------- Ticker ---------- */
.ticker{background:var(--surface);border-bottom:1px solid var(--border)}
.ticker .wrap{display:flex;align-items:center;gap:14px;min-height:42px}
.ticker-label{flex:0 0 auto;display:flex;align-items:center;gap:7px;background:var(--navy);color:#fff;font-weight:800;font-size:14px;padding:6px 12px;border-radius:var(--radius)}
.ticker-label .star{color:#6ea1ff;font-size:14px}
.ticker-list{list-style:none;margin:0;padding:0;display:flex;gap:26px;overflow-x:auto;scrollbar-width:none;white-space:nowrap;flex:1}
.ticker-list::-webkit-scrollbar{display:none}
.ticker-list a{color:var(--text);text-decoration:none;font-weight:600;font-size:14.5px}
.ticker-list a:hover{color:var(--blue);text-decoration:underline}

/* ---------- Chips, meta, cards ---------- */
.chip{display:inline-block;background:var(--blue);color:#fff;font-size:12.5px;font-weight:800;padding:3px 9px;border-radius:3px;text-decoration:none;line-height:1.4}
.chip:hover{color:#fff;filter:brightness(1.1)}
.chip.is-green{background:var(--green)}
.meta{color:var(--muted);font-size:13.5px;display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center}
.meta a{color:inherit}
.thumb{display:block;position:relative;aspect-ratio:16/9;background:var(--surface-2);overflow:hidden;border-radius:var(--radius)}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.thumb.ph{display:grid;place-items:center;background:var(--navy);color:#2f4f9a;font-size:46px}
.card .thumb{margin-bottom:10px}
.card h3{font-size:18px;margin:6px 0 6px}
.card h3 a,.row h3 a,.hero-main h2 a,.hero-side h3 a{color:var(--text);text-decoration:none}
.card h3 a:hover,.row h3 a:hover,.hero-main h2 a:hover,.hero-side h3 a:hover{color:var(--blue);text-decoration:underline}
.card .excerpt{color:var(--muted);font-size:15px;margin:0 0 8px}
.grid{display:grid;gap:var(--gap);grid-template-columns:1fr}
.row{display:grid;grid-template-columns:112px 1fr;gap:12px;align-items:start}
.row .thumb{aspect-ratio:1/1}
.row h3{font-size:16px;margin:4px 0}
.row .chip{font-size:11.5px;padding:2px 7px}

/* ---------- Sections ---------- */
.section{padding:34px 0 6px}
.sec-head{display:flex;align-items:center;gap:10px;margin-bottom:18px;border-bottom:2px solid var(--border)}
.sec-head h2{margin:0;font-size:24px;padding-bottom:8px;margin-bottom:-2px;border-bottom:4px solid var(--accent,var(--navy));display:flex;align-items:center;gap:8px}
.sec-head h2 .star{font-size:.7em;color:var(--accent,var(--navy))}
:root[data-theme="dark"] .sec-head h2{color:#fff}
.sec-head .more{margin-left:auto;font-weight:700;font-size:14.5px;padding-bottom:8px}
.s-blue{--accent:var(--blue)} .s-green{--accent:var(--green)} .s-navy{--accent:var(--navy)}
:root[data-theme="dark"] .s-navy{--accent:#6ea1ff}

/* Hero */
.hero{padding-top:22px}
.hero-grid{display:grid;gap:var(--gap)}
.hero-main{background:var(--navy);color:#fff;border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column}
.hero-main .thumb{border-radius:0;aspect-ratio:16/9}
.hero-body{padding:18px 20px 22px}
.hero-main h2{font-size:clamp(24px,4.4vw,38px);margin:10px 0 10px}
.hero-main h2 a{color:#fff}
.hero-main h2 a:hover{color:#cfe0ff}
.hero-main .excerpt{color:#d3dcf2;margin-bottom:12px}
.hero-main .meta{color:#aebbdc;margin-bottom:14px}
.hero-side{display:grid;gap:16px;align-content:start}
.hero-side .row{grid-template-columns:120px 1fr}

/* Trending now */
.trend-band{background:var(--surface);margin-top:34px;padding:30px 0 34px;border-block:1px solid var(--border)}
.trend-band .section{padding:0}
.trend-scroll{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(220px,70%);gap:16px;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:6px}
.trend-scroll .card{scroll-snap-align:start}
.trend-scroll .thumb{aspect-ratio:4/3}

/* layouts for editorial sections */
.lay-lead{display:grid;gap:var(--gap)}
.lay-lead .list{display:grid;gap:16px;align-content:start}
.lay-lead .lead h3{font-size:26px}
.lay-sq .thumb{aspect-ratio:1/1}
.lay-band{background:var(--navy);color:#fff;border-radius:var(--radius);padding:22px 20px 24px}
.lay-band .card h3 a{color:#fff}
.lay-band .card h3 a:hover{color:#cfe0ff}
.lay-band .meta,.lay-band .card .excerpt{color:#aebbdc}
.lay-band .sec-head{border-bottom-color:#2b4580}
.lay-band .sec-head h2{color:#fff;border-bottom-color:var(--green)}
.lay-band .sec-head h2 .star{color:var(--green)}
.lay-band .sec-head .more{color:#9cc0ff}
.lay-rows{display:grid;gap:18px}
.lay-rows .row{grid-template-columns:140px 1fr}
.lay-rows .row .thumb{aspect-ratio:4/3}

/* Main + sidebar */
.layout{display:grid;gap:32px;padding-top:34px}
.sidebar{display:grid;gap:26px;align-content:start}
.widget{background:var(--surface);border-radius:var(--radius);padding:16px}
.widget-title{font-size:18px;margin:0 0 12px;padding-bottom:8px;border-bottom:3px solid var(--green)}
.widget ul{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.widget .row{grid-template-columns:84px 1fr}
.widget .row h3{font-size:15px}
.sticky-box{position:sticky;top:calc(var(--header-h) + var(--wp-admin--admin-bar--height,0px) + 16px)}

/* Pagination */
.pagination{margin:32px 0;display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.pagination .page-numbers{min-width:44px;height:44px;display:grid;place-items:center;padding:0 12px;border:1px solid var(--border);border-radius:var(--radius);color:var(--text);text-decoration:none;font-weight:700}
.pagination .page-numbers.current{background:var(--navy);border-color:var(--navy);color:#fff}
.pagination a.page-numbers:hover{background:var(--surface)}

/* Ads (reserve space; collapse for logged-in editors via PHP) */
.ntc-ad{margin:26px auto;text-align:center;min-height:var(--ad-h);max-width:100%;overflow:hidden;clear:both}
.ntc-ad .ad-label{display:block;font-size:11px;color:var(--muted);letter-spacing:.04em;margin-bottom:4px}
.ntc-ad.in-sidebar{margin:0}
.ntc-ad.in-article{margin:28px auto}

/* ---------- Article ---------- */
.progress{position:fixed;left:0;right:0;top:var(--wp-admin--admin-bar--height,0px);height:4px;z-index:70;background:transparent}
.progress span{display:block;height:100%;width:0;background:var(--green)}
.crumbs{font-size:13.5px;color:var(--muted);padding:16px 0 4px}
.crumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 8px}
.crumbs li+li::before{content:"/";margin-right:8px;opacity:.6}
.crumbs a{color:var(--muted)}
.article-head{max-width:820px}
.article-head h1{font-size:clamp(28px,5.4vw,46px);margin:10px 0 12px}
.article-head .summary{font-size:1.15em;color:var(--muted);margin-bottom:14px}
.article-head .meta{font-size:14.5px}
.article-fig{margin:18px 0 0}
.article-fig .thumb{aspect-ratio:16/9;border-radius:var(--radius)}
.article-fig figcaption{font-size:13.5px;color:var(--muted);padding-top:6px}
.article{max-width:760px}
.entry{font-size:1.08em;line-height:1.8;overflow-wrap:anywhere}
.entry>*{max-width:100%}
.entry h2{font-size:1.65em;margin:1.6em 0 .5em}
.entry h3{font-size:1.3em;margin:1.4em 0 .5em}
.entry img{border-radius:4px}
.entry figure{margin:1.4em 0}
.entry figcaption,.wp-caption-text{font-size:13.5px;color:var(--muted)}
.entry blockquote{margin:1.4em 0;padding:6px 0 6px 18px;border-left:5px solid var(--green);font-size:1.08em;color:var(--text)}
.entry ul,.entry ol{padding-left:1.4em}
.entry li{margin-bottom:.4em}
.entry .table-wrap,.entry .wp-block-table{overflow-x:auto;display:block}
.entry table{border-collapse:collapse;width:100%;min-width:480px;font-size:.95em}
.entry th,.entry td{border:1px solid var(--border);padding:8px 10px;text-align:left}
.entry th{background:var(--surface)}
.entry iframe{max-width:100%}
.entry .alignleft{float:left;margin:0 1em 1em 0}.entry .alignright{float:right;margin:0 0 1em 1em}.entry .aligncenter{display:block;margin:1em auto}
.toc{background:var(--surface);border-left:5px solid var(--blue);border-radius:var(--radius);padding:14px 18px;margin:0 0 26px;font-size:15.5px;line-height:1.5}
.toc strong{display:block;margin-bottom:6px}
.toc ol{margin:0;padding-left:1.2em}
.toc li{margin:4px 0}
.toc ol ol{margin-top:4px}
.share{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:22px 0;padding:14px 0;border-block:1px solid var(--border)}
.share strong{margin-right:4px}
.share a,.share button{min-height:40px;padding:0 14px;border-radius:var(--radius);border:1px solid var(--border);background:var(--bg);color:var(--text);font-weight:700;font-size:14.5px;text-decoration:none;display:inline-flex;align-items:center;cursor:pointer}
.share a:hover,.share button:hover{background:var(--surface);border-color:var(--blue)}
.tags{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}
.tags a{background:var(--surface);color:var(--text);padding:4px 11px;border-radius:99px;text-decoration:none;font-size:14px}
.tags a:hover{background:var(--surface-2)}
.post-nav{display:grid;gap:12px;margin:28px 0}
.post-nav a{display:block;border:1px solid var(--border);border-radius:var(--radius);padding:14px;text-decoration:none;color:var(--text)}
.post-nav a:hover{border-color:var(--blue)}
.post-nav small{display:block;color:var(--muted);font-weight:700;margin-bottom:4px}
.post-nav strong{line-height:1.3}
.author-box{display:flex;gap:14px;background:var(--surface);padding:16px;border-radius:var(--radius);margin:24px 0}
.author-box img{border-radius:50%;flex:0 0 auto}

/* Comments */
.comments{margin-top:34px}
.comment-list{list-style:none;padding:0}
.comment-list .children{list-style:none;padding-left:18px;border-left:3px solid var(--border)}
.comment-body{padding:14px 0;border-bottom:1px solid var(--border)}
.comment-meta{font-size:13.5px;color:var(--muted)}
.comment-form label{display:block;font-weight:700;margin-bottom:4px}
.comment-form input[type=text],.comment-form input[type=email],.comment-form input[type=url],.comment-form textarea{width:100%;padding:10px 12px;border:2px solid var(--border);border-radius:var(--radius);background:var(--bg);color:var(--text);font:inherit}
.comment-form .comment-form-cookies-consent{display:flex;gap:8px;align-items:center}
.comment-form .comment-form-cookies-consent input{width:auto}
.comment-form input[type=submit]{border:0;font-size:16px}

/* Archive header */
.archive-head{padding:26px 0 8px}
.archive-head h1{font-size:clamp(28px,5vw,40px);margin:0 0 8px}
.archive-head p{color:var(--muted);max-width:720px}
.archive-head .subcats{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.empty{background:var(--surface);border-radius:var(--radius);padding:26px;text-align:center}
.empty h2{font-size:22px}

/* Newsletter + footer */
.newsletter{background:var(--surface);border-block:1px solid var(--border);margin-top:44px;padding:26px 0}
.newsletter .wrap{max-width:720px;text-align:center}
.newsletter input[type=email]{min-height:46px;padding:0 12px;border:2px solid var(--border);border-radius:var(--radius);background:var(--bg);color:var(--text);font:inherit}
.site-footer{background:var(--navy);color:#cfd8ee;margin-top:44px;border-top:5px solid var(--green)}
.site-footer a{color:#cfd8ee;text-decoration:none}
.site-footer a:hover{color:#fff;text-decoration:underline}
.footer-grid{display:grid;gap:28px;padding:36px 0 24px}
.footer-grid h2{font-size:16px;color:#fff;margin-bottom:12px}
.footer-grid ul{list-style:none;margin:0;padding:0;display:grid;gap:8px;font-size:15px}
.footer-brand img{width:120px;height:auto;border-radius:10px;margin-bottom:12px}
.footer-brand .brand{color:#fff;margin-bottom:12px}
.footer-brand p{font-size:15px;max-width:380px}
.footer-social{display:flex;flex-wrap:wrap;gap:8px 14px}
.footer-bottom{border-top:1px solid #2b4580;padding:16px 0;font-size:14px;display:flex;flex-wrap:wrap;gap:6px 18px;justify-content:space-between}
.to-top{position:fixed;right:14px;bottom:14px;z-index:60;width:46px;height:46px;border-radius:50%;border:0;background:var(--navy);color:#fff;cursor:pointer;display:none;place-items:center;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.to-top.is-visible{display:grid}
.to-top svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}

/* ---------- Mobile menu ---------- */
@media (max-width:899px){
  .topbar .social{display:none}
  .menu-toggle{display:grid}
  .primary-nav{position:absolute;left:0;right:0;top:100%;background:var(--bg);border-bottom:3px solid var(--navy);display:none;max-height:calc(100vh - var(--header-h) - 40px);overflow-y:auto;margin:0}
  .primary-nav.is-open{display:block}
  .primary-nav ul{flex-direction:column;align-items:stretch;padding:8px 16px 14px}
  .primary-nav a{padding:13px 8px;border-bottom:1px solid var(--border);font-size:16px;border-radius:0}
  .primary-nav ul ul{position:static;display:flex;border:0;box-shadow:none;padding:0 0 0 14px;min-width:0}
  .header-tools{margin-left:auto}
}
@media (min-width:600px){
  .grid.c2,.grid.c3,.grid.c4{grid-template-columns:repeat(2,1fr)}
  .trend-scroll{grid-auto-columns:minmax(230px,38%)}
  .post-nav{grid-template-columns:1fr 1fr}
  .post-nav .next{text-align:right}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media (min-width:900px){
  .hero-grid{grid-template-columns:2fr 1fr}
  .grid.c3{grid-template-columns:repeat(3,1fr)}
  .grid.c4{grid-template-columns:repeat(4,1fr)}
  .lay-lead{grid-template-columns:1.3fr 1fr}
  .lay-rows{grid-template-columns:1fr 1fr}
  .layout.has-sidebar{grid-template-columns:minmax(0,1fr) 320px}
  .trend-scroll{grid-auto-flow:row;grid-template-columns:repeat(3,1fr);overflow:visible}
  .footer-grid{grid-template-columns:1.5fr 1fr 1fr 1fr}
  .hero-side .row{grid-template-columns:120px 1fr}
}
@media (min-width:1100px){
  .trend-scroll{grid-template-columns:repeat(6,1fr)}
  .trend-scroll .card h3{font-size:15.5px}
}
@media print{.topbar,.site-header,.ticker,.sidebar,.share,.ntc-ad,.to-top,.progress,.site-footer,.post-nav,.comments{display:none!important}}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.toc .sub{margin-left:1em;list-style:circle}
.ad-widget{max-width:100%}
.hero-main .chip.is-green{background:var(--green)}
.slot-sidebar{display:none}
@media (min-width:900px){.slot-sidebar{display:block}}
.hero-main .meta .meta{margin:0}
.search-form{max-width:640px}
