/* =========================================================
   APF NEWS PAGE - COMPACT PREMIUM
========================================================= */

html,
body{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
}

.apf-news-main{
    width:100%;
    max-width:1180px;
    margin:0 auto;
    padding:105px 15px 70px;
    position:relative;
    overflow:hidden;
}

.apf-news-main::before{
    content:"";
    position:absolute;
    top:80px;
    left:50%;
    width:680px;
    height:520px;
    transform:translateX(-50%);
    background:radial-gradient(circle, rgba(212,175,55,0.10), transparent 70%);
    filter:blur(60px);
    pointer-events:none;
    z-index:-1;
}

/* HERO */

.news-hero{
    text-align:center;
    margin-bottom:26px;
}

.news-kicker{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 16px;
    border-radius:999px;
    background:rgba(239,68,68,0.10);
    border:1px solid rgba(239,68,68,0.38);
    color:#ff6b6b;
    font-size:13px;
    font-weight:900;
    margin-bottom:16px;
}

.news-hero h1{
    color:#fff;
    font-size:clamp(2.1rem,5vw,4.2rem);
    font-weight:900;
    margin-bottom:12px;
    letter-spacing:-1px;
}

.news-hero p{
    color:#a1a1aa;
    font-size:15px;
    line-height:1.9;
    max-width:720px;
    margin:0 auto 14px;
}

.news-timezone-pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#d4af37;
    background:rgba(212,175,55,0.08);
    border:1px solid rgba(212,175,55,0.22);
    border-radius:999px;
    padding:8px 15px;
    font-size:13px;
    font-weight:900;
}

/* DAYS NAV */

.news-nav{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:12px;
    margin:24px auto 20px;
}

.news-nav-top{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    flex-wrap:wrap;
    width:fit-content;
    max-width:100%;
    padding:6px;
    background:rgba(255,255,255,0.035);
    border:1px solid rgba(255,255,255,0.07);
    border-radius:999px;
    backdrop-filter:blur(18px);
}

.news-nav-bottom{
    display:flex;
    justify-content:center;
    width:100%;
}

.day-btn{
    background:transparent;
    border:1px solid transparent;
    color:#a1a1aa;
    padding:9px 17px;
    border-radius:999px;
    cursor:pointer;
    font-weight:900;
    font-size:14px;
    white-space:nowrap;
    transition:all .25s ease;
}

.day-btn:hover{
    color:#fff;
    background:rgba(212,175,55,.08);
    border-color:rgba(212,175,55,.18);
}

.day-btn.active{
    color:#09090b;
    background:linear-gradient(135deg, #f1c40f, #d4af37, #b48a2a);
    border-color:rgba(212,175,55,.65);
    box-shadow:0 0 22px rgba(212,175,55,.22);
}

.week-btn{
    min-width:170px;
    background:rgba(255,255,255,0.035);
    border:1px solid rgba(255,255,255,0.07);
}

/* CONTAINER */

.news-container{
    position:relative;
    background:linear-gradient(180deg, #121318 0%, #0f1014 100%);
    border:1px solid rgba(212,175,55,0.13);
    border-radius:22px;
    padding:18px;
    margin-bottom:18px;
    overflow:hidden;
    animation:fadeIn .28s ease;
}

.news-container::before{
    content:"";
    position:absolute;
    inset:0;
    background:radial-gradient(circle at top, rgba(212,175,55,0.07), transparent 50%);
    pointer-events:none;
}

.hidden{
    display:none !important;
}

.news-container h2{
    position:relative;
    color:#f0cd62;
    margin-bottom:14px;
    font-size:22px;
    font-weight:900;
    display:flex;
    align-items:center;
    gap:10px;
}

/* COMPACT NEWS CARD */

.news-card{
    position:relative;
    display:grid;
    grid-template-columns:34px 68px minmax(0,1fr) 115px;
    align-items:center;
    gap:10px;
    min-height:46px;
    background:rgba(255,255,255,0.032);
    border:1px solid rgba(255,255,255,0.06);
    border-right:3px solid rgba(239,68,68,0.75);
    padding:7px 10px;
    border-radius:13px;
    margin-bottom:8px;
    transition:all .25s ease;
    overflow:hidden;
}

.news-card:hover{
    border-color:rgba(212,175,55,0.34);
    transform:translateY(-1px);
    background:rgba(255,255,255,0.045);
}

.news-flag{
    width:28px;
    height:28px;
    border-radius:50%;
    object-fit:cover;
    background:#09090b;
    border:1px solid rgba(255,255,255,0.14);
}

.currency{
    min-width:58px;
    height:26px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
    font-size:12px;
    letter-spacing:.4px;
    border-radius:999px;
    border:1px solid currentColor;
}

/* Currency identity colors */

.usd{
    color:#22c55e;
    background:rgba(34,197,94,0.10);
}

.eur{
    color:#facc15;
    background:rgba(37,99,235,0.18);
}

.gbp{
    color:#ef4444;
    background:rgba(29,78,216,0.16);
}

.jpy{
    color:#f87171;
    background:rgba(248,250,252,0.08);
}

.aud{
    color:#38bdf8;
    background:rgba(30,64,175,0.18);
}

.chf{
    color:#ff4d4d;
    background:rgba(255,255,255,0.08);
}

.cad{
    color:#f87171;
    background:rgba(239,68,68,0.12);
}

.nzd{
    color:#60a5fa;
    background:rgba(30,64,175,0.18);
}

.news-title{
    color:#fff;
    font-weight:800;
    font-size:14px;
    line-height:1.5;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.news-time{
    color:#d4af37;
    font-weight:900;
    font-size:13px;
    text-align:left;
    white-space:nowrap;
}

/* EMPTY STATES */

.empty-news-box{
    position:relative;
    background:rgba(255,255,255,0.025);
    border:1px dashed rgba(212,175,55,0.22);
    border-radius:18px;
    padding:28px 18px;
    text-align:center;
}

.empty-icon{
    font-size:34px;
    margin-bottom:8px;
}

.empty-news-box h3{
    color:#f0cd62;
    font-size:19px;
    margin-bottom:6px;
    font-weight:900;
}

.empty-news-box p{
    color:#a1a1aa;
    font-size:14px;
    margin:0;
}

/* WEEK VIEW */

.week-day-block{
    position:relative;
    margin-bottom:20px;
}

.week-day-title{
    color:#f0cd62;
    font-size:18px;
    font-weight:900;
    margin-bottom:10px;
    padding-bottom:7px;
    border-bottom:1px solid rgba(212,175,55,0.14);
}

.week-empty-box{
    display:flex;
    align-items:center;
    gap:9px;
    background:rgba(255,255,255,0.025);
    border:1px dashed rgba(212,175,55,0.18);
    border-radius:13px;
    padding:11px 13px;
    color:#a1a1aa;
}

.week-empty-icon{
    font-size:18px;
}

.week-empty-text{
    font-size:13px;
    font-weight:700;
}

/* FOOTER NOTE */

.news-footer-note{
    margin-top:16px;
    padding:13px 16px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    color:#a1a1aa;
    font-size:13px;
    line-height:1.8;
    background:rgba(255,255,255,0.025);
    border:1px solid rgba(255,255,255,0.05);
    border-radius:15px;
}

.news-footer-note p{
    margin:0;
}

.current-day-label{
    display:inline-flex;
    align-items:center;
    margin-right:8px;
    padding:3px 9px;
    border-radius:999px;
    background:rgba(212,175,55,0.12);
    border:1px solid rgba(212,175,55,0.20);
    color:#d4af37;
    font-size:11px;
    font-weight:900;
    vertical-align:middle;
}

/* ANIMATION */

@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(8px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* MOBILE */

@media(max-width:768px){

    .apf-news-main{
        padding:92px 10px 55px;
    }

    .news-hero{
        margin-bottom:20px;
    }

    .news-hero h1{
        font-size:2.25rem;
    }

    .news-hero p{
        font-size:14px;
    }

    .news-nav{
        width:100%;
        gap:10px;
        margin:20px auto 16px;
    }

    .news-nav-top{
        width:100%;
        display:grid;
        grid-template-columns:repeat(5,1fr);
        gap:5px;
        padding:5px;
        border-radius:18px;
    }

    .news-nav-bottom{
        width:100%;
        justify-content:center;
    }

    .day-btn{
        padding:8px 6px;
        font-size:12px;
        width:100%;
        text-align:center;
    }

    .week-btn{
        width:58%;
        min-width:170px;
        max-width:240px;
        padding:9px 15px;
        font-size:13px;
    }

    .news-container{
        padding:13px;
        border-radius:18px;
    }

    .news-container h2{
        font-size:19px;
        margin-bottom:12px;
    }

    .news-card{
        grid-template-columns:26px 48px minmax(0,1fr) 76px;
        gap:6px;
        min-height:40px;
        padding:6px 7px;
        border-radius:12px;
    }

    .news-flag{
        width:23px;
        height:23px;
    }

    .currency{
        min-width:44px;
        height:23px;
        font-size:10.5px;
    }

    .news-title{
        font-size:12px;
        line-height:1.4;
    }

    .news-time{
        font-size:10.5px;
    }

    .news-footer-note{
        flex-direction:column;
        text-align:center;
        gap:3px;
        font-size:12px;
    }
}

@media(max-width:430px){

    .news-nav-top{
        gap:4px;
    }

    .day-btn{
        padding:8px 4px;
        font-size:11px;
    }

    .news-card{
        grid-template-columns:24px 44px minmax(0,1fr) 70px;
        gap:5px;
    }

    .news-flag{
        width:22px;
        height:22px;
    }

    .currency{
        min-width:40px;
        font-size:10px;
    }

    .news-title{
        font-size:11.5px;
    }

    .news-time{
        font-size:10px;
    }
}