/* ============================================================
   NaijaSabi — Reactions CSS
   ============================================================ */
.ns-reactions {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--surface-2, #F8F9FA);
    border: 1px solid var(--border, #E8ECF0);
    border-radius: 12px;
    text-align: center;
}
.ns-reactions__label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-muted, #6B7280);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 1rem;
}
.ns-reactions__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
}
.ns-reactions__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: .6rem .9rem;
    border: 1.5px solid var(--border, #E8ECF0);
    border-radius: 40px;
    background: #fff;
    cursor: pointer;
    transition: transform .15s, border-color .15s, background .15s, box-shadow .15s;
    font-size: .75rem;
    color: var(--text-muted, #6B7280);
    min-width: 64px;
}
.ns-reactions__btn:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: var(--brand-green, #007A3D);
    box-shadow: 0 4px 12px rgba(0,122,61,.12);
}
.ns-reactions__btn--active {
    background: var(--brand-green, #007A3D);
    border-color: var(--brand-green, #007A3D);
    color: #fff;
}
.ns-reactions__btn--active:hover { background: #005C2E; }
.ns-reactions__emoji { font-size: 1.6rem; line-height: 1; }
.ns-reactions__count { font-size: .78rem; font-weight: 700; }
.ns-reactions__label-text { font-size: .7rem; }
.ns-reactions__btn--loading { opacity: .6; pointer-events: none; }

@media (prefers-color-scheme: dark) {
    .ns-reactions { background: #1e2630; border-color: #2d3748; }
    .ns-reactions__btn { background: #2d3748; border-color: #4a5568; color: #cbd5e0; }
    .ns-reactions__btn:hover { border-color: var(--brand-green, #007A3D); }
}

/* ============================================================
   Ad Blocker Detection
   ============================================================ */
.ns-adblock-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a202c;
    color: #fff;
    z-index: 99998;
    padding: .75rem 1rem;
    box-shadow: 0 -2px 12px rgba(0,0,0,.25);
    animation: ns-slide-up .3s ease;
}
@keyframes ns-slide-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.ns-adblock-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.ns-adblock-bar__icon { font-size: 1.2rem; flex-shrink: 0; }
.ns-adblock-bar__text { margin: 0; font-size: .85rem; flex: 1; min-width: 200px; color: rgba(255,255,255,.9); }
.ns-adblock-bar__btn {
    background: var(--brand-green, #007A3D);
    color: #fff;
    border: none;
    padding: .5rem 1rem;
    border-radius: 6px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}
.ns-adblock-bar__btn:hover { background: #005C2E; }
.ns-adblock-bar__close {
    background: none;
    border: none;
    color: rgba(255,255,255,.6);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}
.ns-adblock-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.8);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.ns-adblock-overlay__card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.ns-adblock-overlay__icon { font-size: 3rem; margin-bottom: 1rem; }
.ns-adblock-overlay__title { font-size: 1.4rem; font-weight: 700; margin-bottom: .75rem; color: #1a202c; }
.ns-adblock-overlay__message { color: #4a5568; margin-bottom: 1.5rem; line-height: 1.6; }
.ns-adblock-overlay__btn {
    display: block;
    width: 100%;
    padding: .85rem;
    background: var(--brand-green, #007A3D);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: .75rem;
    transition: background .2s;
}
.ns-adblock-overlay__btn:hover { background: #005C2E; }
.ns-adblock-overlay__skip {
    background: none;
    border: none;
    color: #718096;
    font-size: .82rem;
    cursor: pointer;
    text-decoration: underline;
}

/* ============================================================
   Mega Menu
   ============================================================ */
.ns-mega-parent { position: relative; }
.ns-mega-trigger { display: flex !important; align-items: center; gap: 4px; }
.ns-mega-chevron { transition: transform .2s; }
.ns-mega-parent:hover .ns-mega-chevron,
.ns-mega-parent.ns-mega-open .ns-mega-chevron { transform: rotate(180deg); }
.ns-mega-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 720px;
    max-width: 960px;
    width: max-content;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,.15);
    padding: 1.5rem;
    z-index: 9990;
    display: none;
    animation: ns-mega-fade .18s ease;
}
@keyframes ns-mega-fade { from { opacity:0; transform: translateX(-50%) translateY(-8px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }
.ns-mega-parent:hover .ns-mega-panel,
.ns-mega-parent.ns-mega-open .ns-mega-panel { display: block; }
.ns-mega-panel__inner {
    display: grid;
    gap: 1.5rem;
}
.ns-mega-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ns-mega-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ns-mega-cols-4 { grid-template-columns: repeat(4, 1fr); }
.ns-mega-cols-5 { grid-template-columns: repeat(5, 1fr); }
.ns-mega-col__title {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--brand-green, #007A3D);
    margin-bottom: .75rem;
    text-decoration: none;
    border-bottom: 2px solid #e8f5ee;
    padding-bottom: .4rem;
}
.ns-mega-col__title:hover { color: #005C2E; }
.ns-mega-col__posts { list-style: none; padding: 0; margin: 0; }
.ns-mega-col__post-item { margin-bottom: .6rem; }
.ns-mega-col__post-link {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-decoration: none;
    color: #374151;
    font-size: .82rem;
    line-height: 1.4;
}
.ns-mega-col__post-link:hover { color: var(--brand-green, #007A3D); }
.ns-mega-col__thumb {
    width: 56px;
    height: 42px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}
.ns-mega-col__post-title { flex: 1; }

@media (max-width: 1023px) {
    .ns-mega-panel { display: none !important; }
}

@media (prefers-color-scheme: dark) {
    .ns-mega-panel { background: #1e2630; border-color: #2d3748; }
    .ns-mega-col__post-link { color: #cbd5e0; }
    .ns-mega-col__post-link:hover { color: #6ee7b7; }
    .ns-mega-col__title { border-bottom-color: #2d3748; }
}

/* ============================================================
   Podcast Player
   ============================================================ */
.ns-podcast-player {
    background: linear-gradient(135deg, #007A3D 0%, #005C2E 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    color: #fff;
}
.ns-podcast-player__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1rem;
    font-size: .82rem;
    opacity: .9;
}
.ns-podcast-player__ep {
    background: rgba(255,255,255,.2);
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}
.ns-podcast-player__audio {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 8px;
    accent-color: #F5A623;
}
.ns-podcast-player__links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.ns-podcast-player__link {
    background: rgba(255,255,255,.15);
    color: #fff;
    text-decoration: none;
    padding: .35rem .8rem;
    border-radius: 6px;
    font-size: .78rem;
    font-weight: 600;
    transition: background .2s;
}
.ns-podcast-player__link:hover { background: rgba(255,255,255,.3); }

/* Podcast archive */
.ns-podcast-archive { display: grid; gap: 1.5rem; }
.ns-podcast-episode-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--border, #E8ECF0);
    border-radius: 12px;
    background: #fff;
    transition: box-shadow .2s;
}
.ns-podcast-episode-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.ns-podcast-episode-card__thumb { border-radius: 8px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.ns-podcast-episode-card__ep-badge {
    font-size: .75rem;
    font-weight: 700;
    color: var(--brand-green, #007A3D);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .25rem;
}
.ns-podcast-episode-card__title { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.ns-podcast-episode-card__title a { color: inherit; text-decoration: none; }
.ns-podcast-episode-card__title a:hover { color: var(--brand-green, #007A3D); }
.ns-podcast-episode-card__meta { font-size: .8rem; color: #6B7280; display: flex; gap: .75rem; }
.ns-podcast-episode-card__excerpt { font-size: .85rem; color: #4B5563; margin: .5rem 0; }

@media (max-width: 540px) {
    .ns-podcast-episode-card { grid-template-columns: 1fr; }
}
@media (prefers-color-scheme: dark) {
    .ns-podcast-episode-card { background: #1e2630; border-color: #2d3748; }
}

/* ============================================================
   Gallery Post Format
   ============================================================ */
.ns-gallery {
    margin: 0 0 1.5rem;
}
/* Masonry */
.ns-gallery--masonry {
    columns: 3 200px;
    column-gap: .75rem;
}
.ns-gallery--masonry .ns-gallery__item {
    break-inside: avoid;
    margin-bottom: .75rem;
}
/* Grid */
.ns-gallery--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .75rem;
}
.ns-gallery--grid .ns-gallery__img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
/* Slider */
.ns-gallery--slider {
    position: relative;
    overflow: hidden;
}
.ns-gallery--slider .ns-gallery__item {
    display: none;
}
.ns-gallery--slider .ns-gallery__item.active {
    display: block;
}
.ns-gallery--slider .ns-gallery__img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 8px;
}
.ns-gallery-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: .75rem;
}
.ns-gallery-prev, .ns-gallery-next {
    background: var(--brand-green, #007A3D);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: background .2s;
}
.ns-gallery-prev:hover, .ns-gallery-next:hover { background: #005C2E; }
.ns-gallery-counter { font-size: .85rem; color: #6B7280; }

/* Common */
.ns-gallery__img { max-width: 100%; height: auto; display: block; border-radius: 4px; }
.ns-gallery__link { display: block; cursor: zoom-in; }
.ns-gallery__caption {
    font-size: .78rem;
    color: #6B7280;
    padding: .3rem .5rem;
    text-align: center;
    font-style: italic;
}
.ns-format-gallery .post-format-icon::before { content: '🖼️ '; }

/* Lightbox */
.ns-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.92);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ns-lightbox[hidden] { display: none !important; }
.ns-lightbox__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 90vw;
    max-height: 90vh;
}
.ns-lightbox__stage { text-align: center; }
.ns-lightbox__img {
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.ns-lightbox__caption { color: rgba(255,255,255,.75); font-size: .85rem; margin-top: .5rem; }
.ns-lightbox__close,
.ns-lightbox__prev,
.ns-lightbox__next {
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background .2s;
    flex-shrink: 0;
}
.ns-lightbox__close {
    position: absolute;
    top: -50px;
    right: 0;
}
.ns-lightbox__close:hover,
.ns-lightbox__prev:hover,
.ns-lightbox__next:hover { background: rgba(255,255,255,.25); }

@media (max-width: 540px) {
    .ns-gallery--masonry { columns: 2 140px; }
    .ns-gallery--slider .ns-gallery__img { height: 240px; }
}

/* ============================================================
   Multiple Authors
   ============================================================ */
.ns-author-box {
    margin: 2.5rem 0;
    border-top: 2px solid var(--brand-green, #007A3D);
    padding-top: 1.5rem;
}
.ns-author-box__heading {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted, #6B7280);
    margin-bottom: 1.25rem;
}
.ns-author-box--inline { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.ns-author-card {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border, #E8ECF0);
    flex: 1;
    min-width: 280px;
}
.ns-author-card:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.ns-author-card__top { display: flex; gap: 1rem; align-items: flex-start; }
.ns-author-card__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--brand-green, #007A3D);
    flex-shrink: 0;
}
.ns-author-card__info { flex: 1; }
.ns-author-card__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--heading, #111827);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .4rem;
}
.ns-author-card__name:hover { color: var(--brand-green, #007A3D); }
.ns-author-card__badge {
    font-size: .68rem;
    font-weight: 700;
    background: #e8f5ee;
    color: #007A3D;
    padding: 1px 7px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.ns-author-card__badge--co { background: #f0f4ff; color: #4361ee; }
.ns-author-card__bio { font-size: .88rem; color: var(--text-muted, #6B7280); line-height: 1.6; margin: .4rem 0 .75rem; }
.ns-author-card__social { display: flex; gap: .5rem; flex-wrap: wrap; }
.ns-author-card__social-link {
    font-size: .78rem;
    font-weight: 600;
    color: var(--brand-green, #007A3D);
    text-decoration: none;
    padding: .2rem .6rem;
    border: 1px solid var(--brand-green, #007A3D);
    border-radius: 4px;
    transition: background .15s, color .15s;
}
.ns-author-card__social-link:hover { background: var(--brand-green, #007A3D); color: #fff; }

@media (prefers-color-scheme: dark) {
    .ns-author-card { border-bottom-color: #2d3748; }
    .ns-author-card__name { color: #f0f4f8; }
    .ns-author-card__name:hover { color: #6ee7b7; }
}
