/* =============================================================================
   NewsSync PRO — Split Hero Layout
   [newssync layout="split-hero" feed="URL"]
   ============================================================================= */

/* ── Wrapper ──────────────────────────────────────────────────────────────── */
.nsp-split-hero {
    display: flex;
    width: 100%;
    min-height: 440px;
    max-height: 560px;
    border-radius: 12px;
    overflow: hidden;
    font-family: inherit;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.12);
    margin: 0 0 28px;
    background: #0f172a;
}

/* ── Image panel (left ~60%) ──────────────────────────────────────────────── */
.nsp-split-hero__image-panel {
    flex: 0 0 60%;
    position: relative;
    overflow: hidden;
}
.nsp-split-hero__image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Background image with zoom-on-hover */
.nsp-split-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 0.5s ease;
}
.nsp-split-hero__image-panel:hover .nsp-split-hero__bg {
    transform: scale(1.04);
}

/* Fade transition states — toggled by JS */
.nsp-split-hero__bg.is-fading {
    opacity: 0;
    transition: opacity 0.22s ease;
}
.nsp-split-hero__bg {
    opacity: 1;
    transition: opacity 0.35s ease, transform 0.5s ease;
}

/* Gradient overlay */
.nsp-split-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.35) 55%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 28px 24px;
    pointer-events: none;
}

/* Category badge */
.nsp-split-hero__badge {
    display: inline-block;
    background: var(--nsp-sh-accent, #e11d48);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    border-radius: 4px;
    padding: 3px 9px;
    margin-bottom: 10px;
    width: fit-content;
}

/* Main title in overlay */
.nsp-split-hero__main-title {
    color: #fff;
    font-size: clamp(15px, 2vw, 24px);
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    transition: opacity 0.2s ease;
}

/* Date in overlay */
.nsp-split-hero__main-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

/* ── List panel (right ~40%) ──────────────────────────────────────────────── */
.nsp-split-hero__list-panel {
    flex: 0 0 40%;
    background: #fff;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
}
.nsp-split-hero__list-panel::-webkit-scrollbar {
    width: 4px;
}
.nsp-split-hero__list-panel::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 4px;
}
.nsp-split-hero__list {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ── Individual list item ─────────────────────────────────────────────────── */
.nsp-split-hero__list-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.15s;
    overflow: hidden;
    border-left: 3px solid transparent;
}
.nsp-split-hero__list-item:last-child {
    border-bottom: none;
}
.nsp-split-hero__list-item:hover {
    background: #f8fafc;
}
.nsp-split-hero__list-item.is-active {
    border-left-color: var(--nsp-sh-accent, #e11d48);
    background: color-mix(in srgb, var(--nsp-sh-accent, #e11d48) 8%, white);
}

/* Item number */
.nsp-split-hero__num {
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    padding: 14px 0;
    transition: color 0.2s;
    user-select: none;
}
.nsp-split-hero__list-item.is-active .nsp-split-hero__num {
    color: var(--nsp-sh-accent, #e11d48);
}

/* Text body */
.nsp-split-hero__list-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px 12px 0;
}

/* Category label in list */
.nsp-split-hero__list-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
    transition: color 0.15s;
}
.nsp-split-hero__list-item.is-active .nsp-split-hero__list-cat {
    color: var(--nsp-sh-accent, #e11d48);
}

/* Title */
.nsp-split-hero__list-title {
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    transition: color 0.15s, font-weight 0.15s;
}
.nsp-split-hero__list-item.is-active .nsp-split-hero__list-title {
    font-weight: 700;
    color: #0f172a;
}

/* Date */
.nsp-split-hero__list-date {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

/* ── Progress bar (fills across duration of active item) ──────────────────── */
.nsp-split-hero__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--nsp-sh-accent, #e11d48);
}
.nsp-split-hero__list-item.is-active .nsp-split-hero__progress {
    animation: nsp-sh-progress var(--nsp-sh-interval, 5s) linear forwards;
}
@keyframes nsp-sh-progress {
    from { width: 0%; }
    to   { width: 100%; }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
    .nsp-split-hero {
        flex-direction: column;
        min-height: auto;
    }
    .nsp-split-hero__image-panel {
        flex: 0 0 auto;
        height: 230px;
        width: 100%;
    }
    .nsp-split-hero__list-panel {
        flex: 0 0 auto;
        width: 100%;
        max-height: 340px;
    }
}

/* ── Widget heading (inside right panel, above the list) ───────────────────── */
.nsp-split-hero__heading {
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    padding: 10px 14px 10px 16px;
    line-height: 1.3;
    border-bottom: 1px solid #f1f5f9;
}

/* ── Prev / Next navigation arrows ────────────────────────────────── */
.nsp-split-hero__nav {
    position: absolute;
    bottom: 18px;
    right: 18px;
    display: flex;
    gap: 6px;
    z-index: 10;
}
.nsp-split-hero__nav-btn {
    width: 34px;
    height: 34px;
    border-radius: 99px;
    background: rgba(15, 23, 42, 0.60);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 2px;
    line-height: 1;
    transition: background 0.15s, transform 0.1s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.nsp-split-hero__nav-btn:hover {
    background: rgba(15, 23, 42, 0.88);
    transform: scale(1.08);
}
.nsp-split-hero__nav-btn:active {
    transform: scale(0.96);
}

/* ── Dark mode — DAAZPRIME Dark Mode plugin (body.daaz-dark) ──────────────── */
body.daaz-dark .nsp-split-hero__list-panel {
    background: var(--daaz-card, #1A1D28);
    scrollbar-color: var(--daaz-border, #2A2D3A) transparent;
}
body.daaz-dark .nsp-split-hero__list-panel::-webkit-scrollbar-thumb {
    background: var(--daaz-border, #2A2D3A);
}
body.daaz-dark .nsp-split-hero__list-item {
    border-bottom-color: var(--daaz-border, #2A2D3A);
}
body.daaz-dark .nsp-split-hero__list-item:hover {
    background: rgba(255, 255, 255, 0.04);
}
body.daaz-dark .nsp-split-hero__list-item.is-active {
    background: color-mix(in srgb, var(--nsp-sh-accent, #e11d48) 15%, var(--daaz-card, #1A1D28));
}
body.daaz-dark .nsp-split-hero__num {
    color: var(--daaz-border, #2A2D3A);
}
body.daaz-dark .nsp-split-hero__list-item.is-active .nsp-split-hero__num {
    color: var(--nsp-sh-accent, #e11d48);
}
body.daaz-dark .nsp-split-hero__list-cat {
    color: var(--daaz-muted, #8B95A5);
}
body.daaz-dark .nsp-split-hero__list-item.is-active .nsp-split-hero__list-cat {
    color: var(--nsp-sh-accent, #e11d48);
}
body.daaz-dark .nsp-split-hero__list-title {
    color: var(--daaz-muted, #8B95A5);
}
body.daaz-dark .nsp-split-hero__list-item.is-active .nsp-split-hero__list-title {
    color: var(--daaz-text, #F0F2F5);
}
body.daaz-dark .nsp-split-hero__list-date {
    color: var(--daaz-muted, #8B95A5);
}
body.daaz-dark .nsp-split-hero__heading {
    color: var(--daaz-text, #F0F2F5);
    border-bottom-color: var(--daaz-border, #2A2D3A);
}
