/*
=========================================================
THE LEONIDA DAILY
UNIVERSAL CATEGORY ARCHIVE
File: assets/css/category.css
Version: 3.0.0

Clean rebuild:
- Fully scoped to .news-category-page
- No sidebar
- Desktop / tablet / mobile
- Mobile article rows
- Dynamic category content
- Clean RSS feed control
=========================================================
*/

/* =========================================================
   BASE
   ========================================================= */

.news-category-page{
    --cat-pink:#ff2aa8;
    --cat-pink-soft:#ff2aa8;
    --cat-bg:#07060c;
    --cat-panel:#0d0a14;
    --cat-card:#0b0911;
    --cat-border:rgba(255,255,255,.10);
    --cat-text:#fff;
    --cat-muted:rgba(255,255,255,.60);

    width:100%;
    min-width:0;
    overflow:hidden;
    background:
        radial-gradient(
            circle at 75% 20%,
            rgba(255,42,168,.045),
            transparent 28%
        ),
        var(--cat-bg);
    color:var(--cat-text);
    padding-bottom:80px;
}

.news-category-page *,
.news-category-page *::before,
.news-category-page *::after{
    box-sizing:border-box;
}

.news-category-page a{
    color:inherit;
    text-decoration:none;
}

.news-category-wrap{
    width:min(1220px,92%);
    margin:0 auto;
}


/* =========================================================
   HERO
   ========================================================= */

.news-category-hero{
    position:relative;
    min-height:445px;
    display:flex;
    align-items:flex-end;
    overflow:hidden;
    isolation:isolate;
    background:#07060c;
}

.news-category-hero-bg{
    position:absolute;
    inset:0;
    z-index:-2;

    background-image:
        linear-gradient(
            90deg,
            rgba(4,3,8,.98) 0%,
            rgba(5,4,10,.91) 28%,
            rgba(6,4,11,.64) 55%,
            rgba(7,5,12,.28) 80%,
            rgba(7,6,12,.58) 100%
        ),
        linear-gradient(
            0deg,
            rgba(7,6,12,.98) 0%,
            rgba(7,6,12,.02) 55%
        );

    background-size:cover;
    background-position:center 30%;
    background-repeat:no-repeat;
    transform:scale(1.015);
}

.news-category-hero::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:110px;
    z-index:-1;
    background:linear-gradient(
        to top,
        var(--cat-bg),
        transparent
    );
    pointer-events:none;
}

.news-category-hero-content{
    width:min(1100px,100%);
    padding:10px 0 52px;
}


/* =========================================================
   HERO TOPBAR — CATEGORY + RSS
   ========================================================= */

.news-category-topbar{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    width:max-content;
    min-width:0;
    gap:9px;
    margin:0 0 24px;
    padding:0;
}

.news-category-topbar-name{
    display:inline-flex;
    align-items:center;
    width:auto;
    height:22px;
    margin:0;
    padding:0;

    color:#fff;
    font-size:18px;
    line-height:22px;
    font-weight:900;
    letter-spacing:-.25px;
    white-space:nowrap;
}

.news-category-feed{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    width:32px;
    min-width:32px;
    height:32px;
    min-height:32px;

    margin:0;
    padding:0;

    border:1px solid rgba(255,42,168,.85);
    border-radius:8px;

    background:rgba(255,42,168,.06);
    color:#fff;

    font-size:0;
    line-height:0;

    box-shadow:
        0 0 9px rgba(255,42,168,.18),
        inset 0 0 8px rgba(255,42,168,.04);

    transition:
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.news-category-feed-text{
    display:none;
}

.news-category-feed-icon{
    display:block;
    width:16px;
    height:16px;
    min-width:16px;
    min-height:16px;
    flex:0 0 16px;
    margin:0;
    padding:0;
    color:#fff;
    transform:none;
    overflow:visible;
}

.news-category-feed-icon circle{
    fill:#fff;
}

.news-category-feed-icon path{
    fill:none;
    stroke:#fff;
}

.news-category-feed:hover,
.news-category-feed:focus-visible,
.news-category-feed:active{
    background:var(--cat-pink);
    border-color:var(--cat-pink);
    color:#fff;
    box-shadow:0 0 14px rgba(255,42,168,.38);
    transform:translateY(-1px);
}



/* =========================================================
   HERO TITLE — LARGE + RESPONSIVE
   ========================================================= */

.news-category-hero h1{
    display:block;
    width:100%;
    max-width:1100px;

    margin:0;
    padding:0;

    color:#fff;

    font-size:clamp(52px,6vw,82px);
    line-height:.94;
    font-weight:950;
    letter-spacing:-3.2px;

    text-transform:uppercase;

    white-space:normal;
    overflow:visible;
}

.news-category-hero-description{
    max-width:760px;
    margin:20px 0 0;
    color:#fff;
    font-size:14px;
    line-height:1.7;
}

.news-category-hero-description p{
    margin:0;
}

.news-category-points{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    margin-top:24px;
}

.news-category-point{
    display:inline-flex;
    align-items:center;
    gap:7px;
    min-height:30px;
    padding:7px 10px;

    border:1px solid rgba(255,255,255,.10);
    border-radius:7px;
    background:rgba(7,6,12,.52);

    color:rgba(255,255,255,.72);
    font-size:9px;
    font-weight:800;

    backdrop-filter:blur(10px);
}

.news-category-point span{
    color:var(--cat-pink);
}


/* =========================================================
   MAIN
   ========================================================= */

.news-category-main{
    position:relative;
    padding:38px 0 0;
}


/* =========================================================
   SUBCATEGORY NAV
   ========================================================= */

.news-category-subnav{
    display:flex;
    align-items:center;
    gap:8px;

    width:100%;
    margin:0 0 28px;
    padding:3px 0 0;

    overflow-x:auto;
    overflow-y:visible;
    scrollbar-width:none;
}

.news-category-subnav::-webkit-scrollbar{
    display:none;
}

.news-category-filter{
    flex:0 0 auto;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    min-height:35px;
    padding:8px 13px;

    border:1px solid rgba(255,255,255,.10);
    border-radius:8px;

    background:rgba(255,255,255,.025);
    color:rgba(255,255,255,.62);

    font-size:10px;
    font-weight:850;
    white-space:nowrap;

    transition:
        color .18s ease,
        background .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.news-category-filter:hover{
    border-color:rgba(255,42,168,.48);
    color:#fff;
    transform:translateY(-1px);
}

.news-category-filter.active{
    border-color:var(--cat-pink);
    background:var(--cat-pink);
    color:#fff;
}


/* =========================================================
   CONTENT HEADING
   ========================================================= */

.news-category-content{
    min-width:0;
}

.news-category-heading{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    margin:0 0 20px;
}

.news-category-heading-kicker{
    margin:0 0 5px;
    color:var(--cat-pink-soft);
    font-size:9px;
    line-height:1;
    font-weight:950;
    letter-spacing:1.5px;
    text-transform:uppercase;
}

.news-category-heading h2{
    display:block;
    margin:0;
    padding:0;

    color:#fff;
    font-size:27px;
    line-height:1.1;
    font-weight:900;
    letter-spacing:-.8px;
}

.category-title-white{
    color:#fff;
}

.category-title-pink{
    color:var(--cat-pink-soft);
}


/* =========================================================
   ARTICLE GRID
   ========================================================= */

.news-category-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
}

.news-category-card{
    min-width:0;
    overflow:hidden;

    border:1px solid rgba(255,255,255,.09);
    border-radius:13px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.018),
            rgba(255,255,255,.008)
        ),
        var(--cat-card);

    box-shadow:0 14px 34px rgba(0,0,0,.20);

    transition:
        transform .24s ease,
        border-color .24s ease,
        box-shadow .24s ease;
}

.news-category-card:hover{
    transform:translateY(-4px);
    border-color:rgba(255,42,168,.46);
    box-shadow:0 20px 42px rgba(0,0,0,.30);
}

.news-category-card-image{
    position:relative;
    display:block;
    width:100%;
    aspect-ratio:16 / 9;
    overflow:hidden;
    background:#110d18;
}

.news-category-card-image img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .45s ease;
}

.news-category-card:hover .news-category-card-image img{
    transform:scale(1.045);
}

.news-category-no-image{
    display:flex;
    align-items:center;
    justify-content:center;

    width:100%;
    height:100%;

    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(255,42,168,.25),
            transparent 45%
        ),
        #0d0914;

    color:rgba(255,255,255,.30);
    font-size:24px;
    font-weight:950;
    letter-spacing:2px;
}


/* =========================================================
   ARTICLE BODY
   ========================================================= */

.news-category-card-body{
    display:flex;
    flex-direction:column;
    min-width:0;
    padding:13px;
}

.news-category-card-label{
    display:block;
    width:max-content;
    max-width:100%;

    margin:0 0 6px;
    padding:0;

    color:var(--cat-pink-soft);
    font-size:10px;
    line-height:1;
    font-weight:900;
    letter-spacing:1px;
    text-transform:uppercase;
}

.news-category-card-title{
    margin:0 0 8px;
    padding:0;

    font-size:16px;
    line-height:1.25;
    font-weight:850;
    letter-spacing:-.2px;
}

.news-category-card-title a{
    display:-webkit-box;
    overflow:hidden;

    color:#fff;

    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;

    transition:color .18s ease;
}

.news-category-card:hover .news-category-card-title a{
    color:var(--cat-pink);
}

.news-category-card-excerpt{
    display:-webkit-box;
    overflow:hidden;

    margin:0 0 10px;

    color:#fff;
    font-size:10px;
    line-height:1.55;

    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
}

.news-category-card-meta{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;

    margin-top:auto;

    color:#fff;
    font-size:12px;
    line-height:1.2;
    font-weight:700;
}

.news-category-card-dot{
    color:var(--cat-pink) !important;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.news-category-pagination{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:4px;
    margin-top:30px;
}

.news-category-pagination .page-numbers{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    min-width:34px;
    height:34px;
    margin:0;
    padding:0 9px;

    border:1px solid rgba(255,255,255,.10);
    border-radius:8px;

    background:#111017;
    color:rgba(255,255,255,.65);

    font-size:10px;
    font-weight:850;

    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease;
}

.news-category-pagination .page-numbers.current,
.news-category-pagination .page-numbers:hover{
    border-color:var(--cat-pink);
    background:var(--cat-pink);
    color:#fff;
}

.news-category-empty{
    padding:55px 20px;

    border:1px solid rgba(255,255,255,.09);
    border-radius:13px;
    background:var(--cat-panel);

    color:rgba(255,255,255,.45);
    text-align:center;
    font-size:12px;
}


/* =========================================================
   TABLET — 901px TO 1050px
   ========================================================= */

@media (max-width:1050px){

    .news-category-wrap{
        width:min(94%,960px);
    }

    .news-category-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:16px;
    }

    .news-category-hero{
        min-height:420px;
    }

    .news-category-hero-content{
        width:min(820px,100%);
    }

    .news-category-hero h1{
        font-size:clamp(40px,6vw,64px);
    }
}


/* =========================================================
   TABLET — 651px TO 900px
   ========================================================= */

@media (max-width:900px){

    .news-category-wrap{
        width:min(94%,760px);
    }

    .news-category-hero{
        min-height:390px;
    }

    .news-category-hero-content{
    width:100%;
    padding:48px 0 44px;
}

  .news-category-hero h1{
    width:100%;
    max-width:760px;

    font-size:clamp(40px,6.5vw,58px);
    line-height:.96;
    letter-spacing:-2.2px;

    white-space:normal;
}

    .news-category-hero-description{
        max-width:620px;
        font-size:13px;
    }

    .news-category-heading h2{
        font-size:24px;
    }
}


/* =========================================================
   MOBILE — 600px AND BELOW
   ========================================================= */

@media (max-width:600px){

    .news-category-page{
        padding-bottom:45px;
    }

    .news-category-wrap{
        width:calc(100% - 22px);
        max-width:none;
    }

    .news-category-hero{
        min-height:0 !important;
        height:auto !important;
        align-items:flex-start;
    }

    .news-category-hero-bg{
        background-position:center 28%;
        background-image:
            linear-gradient(
                180deg,
                rgba(5,4,9,.34) 0%,
                rgba(5,4,9,.70) 48%,
                rgba(7,6,12,.99) 100%
            );
    }

    .news-category-hero-content{
        width:100%;
        padding:24px 0 30px;
    }

    .news-category-topbar{
        gap:9px;
        margin:-8px 0 18px;
    }

    .news-category-topbar-name{
        height:20px;
        font-size:18px;
        line-height:20px;
        font-weight:950;
        letter-spacing:-.15px;
    }

    .news-category-feed{
        width:32px;
        min-width:32px;
        height:32px;
        min-height:32px;
        border-radius:8px;
    }

    .news-category-feed-icon{
        width:16px;
        height:16px;
        min-width:16px;
        min-height:16px;
        flex-basis:16px;
    }

    .news-category-hero h1{
    width:100%;
    max-width:100%;

    font-size:clamp(28px,8vw,38px);
    line-height:.98;
    letter-spacing:-1.4px;

    white-space:normal;
}

    .news-category-hero-description{
        margin-top:12px;
        font-size:11px;
        line-height:1.5;
    }

    .news-category-points{
        gap:6px;
        margin-top:14px;
    }

    .news-category-point{
        min-height:26px;
        padding:6px 8px;
        font-size:8px;
    }

    .news-category-main{
        padding-top:18px;
    }

    .news-category-subnav{
        gap:6px;
        padding-top:4px;
        padding-bottom:2px;
        margin-bottom:16px;
    }

    .news-category-filter{
        min-height:32px;
        padding:7px 10px;
        border-radius:7px;
        font-size:9px;
    }

    .news-category-heading{
        gap:8px;
        margin-bottom:15px;
    }

    .news-category-heading-kicker{
        margin-bottom:4px;
        font-size:8px;
    }

    .news-category-heading h2{
        font-size:21px;
        line-height:1.1;
        letter-spacing:-.45px;
    }

    /* Mobile article = thumbnail left + text right */
    .news-category-grid{
        display:flex;
        flex-direction:column;
        gap:0;
    }

    .news-category-card{
        display:grid;
        grid-template-columns:120px minmax(0,1fr);
        gap:12px;

        width:100%;
        min-height:0;
        padding:12px 0;

        border:0;
        border-bottom:1px solid rgba(255,255,255,.08);
        border-radius:0;

        background:transparent;
        box-shadow:none;
    }

    .news-category-card:first-child{
        padding-top:0;
    }

    .news-category-card:hover{
        transform:none;
        border-color:rgba(255,255,255,.08);
        box-shadow:none;
    }

    .news-category-card-image{
        width:120px;
        height:84px;
        aspect-ratio:auto;
        align-self:start;
        border-radius:8px;
    }

    .news-category-card-body{
        min-width:0;
        padding:0;
    }

    .news-category-card-label{
        width:max-content;
        max-width:100%;
        margin:0 0 6px;
        padding:0;
        font-size:8px;
        line-height:1;
        letter-spacing:.8px;
    }

    .news-category-card-title{
        margin:0 0 5px;
        font-size:14px;
        line-height:1.28;
    }

    .news-category-card-title a{
        -webkit-line-clamp:3;
    }

    .news-category-card-excerpt{
        display:none;
    }

    .news-category-card-meta{
        gap:6px;
        font-size:10px;
    }
}


/* =========================================================
   VERY SMALL MOBILE — 400px AND BELOW
   ========================================================= */

@media (max-width:400px){

    .news-category-wrap{
        width:calc(100% - 18px);
    }

    .news-category-hero{
        min-height:0 !important;
        height:auto !important;
    }

    .news-category-hero h1{
        font-size:clamp(28px,8vw,38px);
        line-height:.98;
        letter-spacing:-1.4px;
    }

    .news-category-card{
        grid-template-columns:105px minmax(0,1fr);
        gap:10px;
    }

    .news-category-card-image{
        width:105px;
        height:76px;
    }

    .news-category-card-title{
        font-size:13px;
    }

    .news-category-card-meta{
        font-size:8px;
    }

    .news-category-heading h2{
        font-size:20px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion:reduce){

    .news-category-page *,
    .news-category-page *::before,
    .news-category-page *::after{
        scroll-behavior:auto;
        transition:none !important;
        animation:none !important;
    }
}

/* =========================================================
   HERO CONTENT — NO GLASS / NO BLACK CARD
   ========================================================= */

.news-category-hero-content{
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
}

@media (max-width:900px){
    .news-category-hero-content{
        background:transparent !important;
        border:0 !important;
        box-shadow:none !important;
        backdrop-filter:none !important;
        -webkit-backdrop-filter:none !important;
    }
}

@media (max-width:600px){
    .news-category-hero-content{
        background:transparent !important;
        border:0 !important;
        box-shadow:none !important;
        backdrop-filter:none !important;
        -webkit-backdrop-filter:none !important;
    }
}

/* =========================================================
   HERO BACKGROUND IMAGE — RESTORE, NO GRADIENT
   ========================================================= */

.news-category-hero-bg{
    background-image:url("../Vice%20city%20Bg.png") !important;
    background-size:cover !important;
    background-position:center center !important;
    background-repeat:no-repeat !important;
}

@media (max-width:900px){
    .news-category-hero-bg{
        background-image:url("../Vice%20city%20Bg.png") !important;
        background-size:cover !important;
        background-position:center center !important;
        background-repeat:no-repeat !important;
    }
}

@media (max-width:600px){
    .news-category-hero-bg{
        background-image:url("../Vice%20city%20Bg.png") !important;
        background-size:cover !important;
        background-position:center center !important;
        background-repeat:no-repeat !important;
    }
}

/* =========================================================
   FINAL — CATEGORY CARD SMALL TEXT
   ========================================================= */

.news-category-page .news-category-card-excerpt{
    color:#fff !important;
    opacity:1 !important;
}

.news-category-page .news-category-card-meta{
    color:#fff !important;
    opacity:1 !important;
}

.news-category-page .news-category-card-meta > span,
.news-category-page .news-category-card-meta > span span{
    color:#fff !important;
    opacity:1 !important;
}

/* =========================================================
   FINAL — CATEGORY CARD SMALL TEXT
   ========================================================= */

.news-category-page .news-category-card-excerpt,
.news-category-page .news-category-card-meta,
.news-category-page .news-category-card-meta > span,
.news-category-page .news-category-card-meta > span span,
.news-category-page .news-category-card-meta time{
    color:#C6B8EF !important;
    text-shadow:none !important;
    filter:none !important;
}