/* ============================================================
   NAIJASABI — Extended Styles
   Mobile nav, progress bar, ad labels, print, dark refinements
   ============================================================ */

/* ---- Read Progress Bar ---- */
.read-progress-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 9999;
  pointer-events: none;
}
.read-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-green) 0%, var(--brand-gold) 100%);
  transition: width .1s linear;
  border-radius: 0 2px 2px 0;
}

/* ---- Ad Label ---- */
.ad-label {
  display: block;
  text-align: center;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9CA3AF;
  margin-bottom: 6px;
  font-family: var(--font-body);
}
.ad-zone-wrapper {
  text-align: center;
}

/* ---- Sticky Header Scrolled State ---- */
.site-header.is-scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.1);
}

/* ---- Mobile Navigation Overlay ---- */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--brand-dark);
  z-index: 1100;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  display: block !important; /* override hidden attr via CSS */
}
.mobile-nav[hidden] {
  display: block !important;
  transform: translateX(-100%);
  pointer-events: none;
}
.mobile-nav--open {
  transform: translateX(0) !important;
  pointer-events: all;
}
.mobile-nav__inner {
  padding: 24px 20px 40px;
}
/* Mobile nav close hint row */
.mobile-nav__inner::before {
  content: 'NaijaSabi';
  display: block;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.mobile-nav__menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-nav__menu li {
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-nav__menu li a {
  display: flex;
  align-items: center;
  padding: 14px 0;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  letter-spacing: .01em;
  transition: color .15s;
}
.mobile-nav__menu li a:hover { color: var(--brand-gold); }

/* Hamburger → X animation */
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-toggle span { transition: transform .25s ease, opacity .2s ease; transform-origin: center; }

/* ---- Comments ---- */
.comments-area {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 2px solid var(--brand-border);
}
.comments-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 20px;
}
.comment-list { list-style: none; padding: 0; margin: 0 0 28px; }
.comment {
  padding: 18px 0;
  border-bottom: 1px solid var(--brand-border);
}
.comment:last-child { border-bottom: none; }
.comment__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.comment__avatar { border-radius: 50%; }
.comment__author { font-weight: 700; font-size: .9rem; font-family: var(--font-head); }
.comment__date { font-size: .78rem; color: var(--brand-muted); }
.comment__body { font-size: .92rem; color: #374151; line-height: 1.7; }
.comment__body p:last-child { margin-bottom: 0; }
.comment__reply a {
  font-size: .78rem;
  color: var(--brand-green);
  font-weight: 700;
  margin-top: 8px;
  display: inline-block;
}
.comment-children {
  list-style: none;
  padding-left: 28px;
  border-left: 2px solid var(--brand-border);
  margin-top: 12px;
}
/* Comment form */
.comment-respond {
  background: var(--brand-offwhite);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 24px;
}
.comment-reply-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.comment-form label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--brand-dark);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--brand-border);
  border-radius: var(--radius-md);
  font-size: .9rem;
  font-family: var(--font-body);
  background: var(--brand-white);
  outline: none;
  transition: var(--transition);
  margin-bottom: 14px;
  color: var(--brand-dark);
}
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(0,122,61,.1);
}
.comment-form textarea { height: 120px; resize: vertical; }
.comment-form-cookies-consent label { font-weight: 400; font-size: .8rem; }
.comment-form-cookies-consent input { margin-right: 6px; }
.comment-form .submit {
  background: var(--brand-green);
  color: #fff;
  padding: 11px 28px;
  border-radius: 24px;
  font-weight: 700;
  font-family: var(--font-head);
  font-size: .9rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.comment-form .submit:hover { background: #005C2E; transform: translateY(-1px); }

/* ---- Author Archive Page ---- */
.author-archive-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--brand-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.author-archive-hero__avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--brand-border);
  flex-shrink: 0;
}
.author-archive-hero__name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.author-archive-hero__role {
  font-size: .82rem;
  color: var(--brand-green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.author-archive-hero__bio {
  font-size: .9rem;
  color: var(--brand-muted);
  line-height: 1.65;
  max-width: 520px;
}
.author-archive-hero__count {
  margin-top: 10px;
  display: inline-block;
  background: var(--brand-offwhite);
  border: 1px solid var(--brand-border);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: .78rem;
  color: var(--brand-muted);
  font-weight: 600;
}

/* ---- Tag Archive ---- */
.tag-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 28px;
  background: var(--brand-white);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--brand-gold);
}
.tag-header__hash {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-border);
  line-height: 1;
}
.tag-header__name {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
}
.tag-header__count {
  font-size: .82rem;
  color: var(--brand-muted);
  margin-top: 3px;
}

/* ---- Load More Button (enhanced) ---- */
.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border: 2px solid var(--brand-green);
  border-radius: 24px;
  color: var(--brand-green);
  font-weight: 700;
  font-family: var(--font-head);
  font-size: .9rem;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
}
.btn-load-more:hover {
  background: var(--brand-green);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-load-more:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}
.btn-load-more .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}
.btn-load-more.loading .spinner { display: block; }
.btn-load-more.loading .btn-text { opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Notification / Toast ---- */
.ns-toast {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: var(--brand-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: .88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 9000;
  transform: translateY(20px);
  opacity: 0;
  transition: all .3s ease;
  max-width: 280px;
}
.ns-toast.show { transform: translateY(0); opacity: 1; }

/* ---- Search Form (WP default override) ---- */
.search-form { display: flex; max-width: 480px; margin: 0 auto; }
.search-form .search-field {
  flex: 1;
  padding: 11px 16px;
  border: 1.5px solid var(--brand-border);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  font-size: .9rem;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
}
.search-form .search-field:focus { border-color: var(--brand-green); }
.search-form .search-submit {
  background: var(--brand-green);
  color: #fff;
  padding: 0 20px;
  border: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.search-form .search-submit:hover { background: #005C2E; }

/* ---- Accessibility ---- */
:focus-visible {
  outline: 3px solid var(--brand-green);
  outline-offset: 2px;
  border-radius: 2px;
}
a:focus-visible, button:focus-visible { outline: 3px solid var(--brand-green); outline-offset: 2px; }
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand-green);
  color: #fff;
  padding: 8px 16px;
  z-index: 99999;
  font-weight: 700;
  transition: top .15s;
}
.skip-link:focus { top: 0; }

/* ---- Category Color Overrides for Nav Dots ---- */
.site-nav__dot[data-cat="football"]     { background: #A78BFA; }
.site-nav__dot[data-cat="jobs"]         { background: #6EE7B7; }
.site-nav__dot[data-cat="finance"]      { background: #FCD34D; }
.site-nav__dot[data-cat="education"]    { background: #93C5FD; }
.site-nav__dot[data-cat="entertainment"]{ background: #F9A8D4; }
.site-nav__dot[data-cat="tech"]         { background: #7DD3FC; }
.site-nav__dot[data-cat="business"]     { background: #FDBA74; }
.site-nav__dot[data-cat="health"]       { background: #5EEAD4; }
.site-nav__dot[data-cat="travel"]       { background: #C4B5FD; }
.site-nav__dot[data-cat="lifestyle"]    { background: #F9A8D4; }

/* ---- WP Alignments ---- */
.alignleft  { float: left;  margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin: 20px auto; display: block; }
.alignwide   { margin-left:  -40px; margin-right: -40px; max-width: calc(100% + 80px); }
.alignfull   { margin-left: -100vw; margin-right: -100vw; width: 100vw; max-width: 100vw; position: relative; left: 50%; transform: translateX(-50%); }

@media (max-width: 768px) {
  .alignwide  { margin-left: -20px; margin-right: -20px; max-width: calc(100% + 40px); }
  .alignleft, .alignright { float: none; margin: 16px 0; }
  .author-archive-hero { flex-direction: column; text-align: center; }
  .author-archive-hero__bio { max-width: 100%; }
  .tag-header { padding: 18px 20px; }
  .tag-header__hash { font-size: 1.8rem; }
  .tag-header__name { font-size: 1.2rem; }
}

/* ---- Gutenberg Block Compatibility ---- */
.wp-block-image img { border-radius: var(--radius-md); }
.wp-block-quote {
  border-left: 4px solid var(--brand-green);
  padding: 14px 20px;
  margin: 24px 0;
  background: #F0FBF6;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.wp-block-pullquote {
  border-top: 4px solid var(--brand-green);
  border-bottom: 4px solid var(--brand-green);
  text-align: center;
  padding: 28px;
  margin: 32px 0;
}
.wp-block-pullquote blockquote { border: none; background: none; padding: 0; }
.wp-block-separator { border: none; border-top: 2px solid var(--brand-border); margin: 32px 0; }
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.wp-block-table th { background: var(--brand-dark); color: #fff; padding: 10px 14px; text-align: left; }
.wp-block-table td { padding: 10px 14px; border-bottom: 1px solid var(--brand-border); }
.wp-block-table tr:hover td { background: var(--brand-offwhite); }
.wp-block-cover { border-radius: var(--radius-lg); overflow: hidden; }
.wp-block-button__link {
  background: var(--brand-green) !important;
  border-radius: 24px !important;
  font-family: var(--font-head) !important;
  font-weight: 700 !important;
  padding: 11px 26px !important;
}
.wp-block-code {
  background: #1E293B;
  color: #E2E8F0;
  border-radius: var(--radius-md);
  padding: 20px;
  font-size: .88rem;
  overflow-x: auto;
}

/* ---- WordPress Required Classes ---- */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .78rem; color: var(--brand-muted); text-align: center; padding-top: 6px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 20px 0; }
.gallery-item img { width: 100%; border-radius: var(--radius-md); object-fit: cover; }
.sticky { /* WP sticky post class */ }
.bypostauthor { /* WP author comment class */ }
.screen-reader-text { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); overflow: hidden; }

/* ---- Pagination (numbered) ---- */
.page-numbers.dots { border: none; background: transparent; pointer-events: none; }

/* ---- Featured Post Badge ---- */
.post-card.is-featured {
  border: 2px solid var(--brand-gold);
}
.post-card.is-featured .post-card__thumb::after {
  content: '★ Featured';
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--brand-gold);
  color: var(--brand-dark);
  font-size: .68rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ---- Live Score Widget (Football) ---- */
.live-scores-widget {
  background: var(--brand-dark);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 24px;
}
.live-scores-widget__title {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--brand-gold);
  margin-bottom: 12px;
}
.live-score-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .82rem;
}
.live-score-item:last-child { border-bottom: none; }
.live-score-item__teams { color: rgba(255,255,255,.85); font-weight: 600; }
.live-score-item__score {
  background: rgba(255,255,255,.12);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .88rem;
}
.live-score-item__time { font-size: .7rem; color: var(--brand-gold); font-weight: 700; }

/* ---- Floating WhatsApp Share (mobile) ---- */
.whatsapp-float {
  display: none;
  position: fixed;
  bottom: 80px;
  left: 20px;
  background: #25D366;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 850;
  font-size: 1.3rem;
  text-decoration: none;
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }
@media (max-width: 768px) {
  .whatsapp-float { display: flex; }
}
