/*
 * Observatorul National
 * Homepage dashboard
 */

.on-home{
    background:#f4f6f8;
}


/* HERO */

.on-home-hero{
    padding:64px 0;
    color:#fff;
    background:
        radial-gradient(
            circle at 78% 20%,
            rgba(213,35,46,.20),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #171a1f 0%,
            #20242b 55%,
            #111318 100%
        );
}

.on-home-hero-inner{
    display:grid;
    grid-template-columns:minmax(0,1.2fr) minmax(360px,.8fr);
    gap:55px;
    align-items:center;
}

.on-home-kicker,
.on-home-section-kicker{
    display:block;
    margin-bottom:12px;
    color:#d5232e;
    font-size:12px;
    line-height:1.2;
    font-weight:800;
    letter-spacing:.13em;
}

.on-home-hero h1{
    margin:0;
    max-width:720px;
    color:#fff;
    font-size:54px;
    line-height:1.02;
    letter-spacing:-.045em;
}

.on-home-hero-copy > p{
    max-width:680px;
    margin:22px 0 0;
    color:#d0d5dd;
    font-size:19px;
    line-height:1.65;
}

.on-home-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:30px;
}

.on-home-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    padding:0 20px;
    border-radius:8px;
    font-size:14px;
    font-weight:750;
    text-decoration:none;
    transition:
        transform .18s ease,
        background .18s ease;
}

.on-home-button:hover{
    transform:translateY(-1px);
}

.on-home-button-primary{
    color:#fff;
    background:#d5232e;
}

.on-home-button-primary:hover{
    background:#bd1d27;
}

.on-home-button-secondary{
    color:#fff;
    border:1px solid #475467;
    background:rgba(255,255,255,.04);
}

.on-home-button-secondary:hover{
    background:rgba(255,255,255,.09);
}


/* BNR CARD */

.on-home-rate{
    padding:22px;
    border:1px solid #353a43;
    border-radius:14px;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.018)
        );
    box-shadow:
        0 22px 50px rgba(0,0,0,.25);
}

.on-home-rate-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

.on-home-rate-head span{
    color:#98a2b3;
    font-size:11px;
    font-weight:800;
    letter-spacing:.1em;
}

.on-home-rate-head strong{
    display:inline-flex;
    align-items:center;
    gap:6px;
    color:#6ce9a6;
    font-size:10px;
    letter-spacing:.08em;
}

.on-home-rate-head strong::before{
    content:"";
    width:7px;
    height:7px;
    border-radius:50%;
    background:currentColor;
    box-shadow:0 0 9px currentColor;
}

.on-home-rate-head strong.is-offline{
    color:#f97066;
}

.on-home-rate-pair{
    margin-top:24px;
    color:#f2f4f7;
    font-size:15px;
    font-weight:700;
}

.on-home-rate-display{
    display:flex;
    align-items:center;
    gap:5px;
    min-height:90px;
    margin-top:12px;
}

.on-home-flip-digit{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:54px;
    height:72px;
    overflow:hidden;
    border:1px solid #353a43;
    border-radius:7px;
    color:#fff;
    background:
        linear-gradient(
            to bottom,
            #252a32 0%,
            #1a1e24 49.3%,
            #050607 49.4%,
            #050607 50.6%,
            #171a1f 50.7%,
            #101217 100%
        );
    box-shadow:
        0 8px 18px rgba(0,0,0,.26),
        inset 0 1px rgba(255,255,255,.05);
    font-family:
        "Arial Narrow",
        "Roboto Condensed",
        Arial,
        sans-serif;
    font-size:46px;
    font-weight:800;
    line-height:1;
    font-variant-numeric:tabular-nums;
}

.on-home-flip-digit::after{
    content:"";
    position:absolute;
    top:50%;
    left:0;
    right:0;
    height:1px;
    background:#000;
    opacity:.8;
}

.on-home-flip-separator{
    display:inline-flex;
    align-items:flex-end;
    justify-content:center;
    width:14px;
    height:67px;
    color:#d0d5dd;
    font-size:42px;
    font-weight:800;
}

.on-home-rate-unit{
    align-self:flex-end;
    margin:0 0 15px 8px;
    color:#98a2b3;
    font-size:13px;
    font-weight:800;
}

.on-home-rate-loading{
    color:#98a2b3;
    font-size:18px;
}

.on-home-rate-date{
    color:#98a2b3;
    font-size:12px;
}

.on-home-rate-link{
    display:inline-block;
    margin-top:18px;
    color:#fff;
    font-size:13px;
    font-weight:700;
    text-decoration:none;
}

.on-home-rate-link:hover{
    color:#d5232e;
}


/* MONITOR */

.on-home-monitor{
    padding:58px 0 68px;
}

.on-home-section-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:40px;
    margin-bottom:28px;
}

.on-home-section-head h2{
    margin:0;
    color:#101828;
    font-size:32px;
    line-height:1.15;
    letter-spacing:-.025em;
}

.on-home-section-head > p{
    max-width:390px;
    margin:0;
    color:#667085;
    font-size:14px;
    line-height:1.6;
}

.on-home-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
}

.on-home-card{
    position:relative;
    display:flex;
    flex-direction:column;
    min-height:280px;
    padding:22px;
    overflow:hidden;
    border:1px solid #e4e7ec;
    border-radius:12px;
    color:inherit;
    background:#fff;
    text-decoration:none;
    box-shadow:0 3px 12px rgba(16,24,40,.035);
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.on-home-card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:3px;
    background:#d5232e;
    transform:scaleX(0);
    transform-origin:left;
    transition:transform .2s ease;
}

.on-home-card:hover{
    transform:translateY(-3px);
    border-color:#d0d5dd;
    box-shadow:0 12px 28px rgba(16,24,40,.09);
}

.on-home-card:hover::before{
    transform:scaleX(1);
}

.on-home-card-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

.on-home-card-number{
    color:#98a2b3;
    font-size:12px;
    font-weight:800;
}

.on-home-active{
    padding:5px 7px;
    border-radius:5px;
    color:#067647;
    background:#ecfdf3;
    font-size:9px;
    font-weight:850;
    letter-spacing:.07em;
}

.on-home-card h3{
    margin:32px 0 12px;
    color:#101828;
    font-size:22px;
    line-height:1.15;
    letter-spacing:-.02em;
}

.on-home-card p{
    margin:0;
    color:#667085;
    font-size:13px;
    line-height:1.65;
}

.on-home-card-footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    margin-top:auto;
    padding-top:28px;
    color:#344054;
    font-size:12px;
    font-weight:700;
}

.on-home-card-footer strong{
    color:#d5232e;
    font-size:21px;
}


/* PUBLIC INFO */

.on-home-public{
    padding:0 0 68px;
}

.on-home-public-box{
    display:grid;
    grid-template-columns:1.25fr .75fr;
    gap:50px;
    align-items:center;
    padding:34px 38px;
    border:1px solid #e4e7ec;
    border-radius:12px;
    background:#fff;
}

.on-home-public-box h2{
    max-width:650px;
    margin:0;
    color:#101828;
    font-size:27px;
    line-height:1.25;
    letter-spacing:-.025em;
}

.on-home-public-box p{
    margin:0;
    color:#667085;
    font-size:14px;
    line-height:1.7;
}


/* RESPONSIVE */

@media(max-width:1000px){

    .on-home-hero-inner{
        grid-template-columns:1fr;
    }

    .on-home-rate{
        max-width:580px;
    }

    .on-home-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

}


@media(max-width:700px){

    .on-home-hero{
        padding:44px 0;
    }

    .on-home-hero h1{
        font-size:40px;
    }

    .on-home-hero-copy > p{
        font-size:16px;
    }

    .on-home-section-head{
        display:block;
    }

    .on-home-section-head > p{
        margin-top:12px;
    }

    .on-home-grid{
        grid-template-columns:1fr;
    }

    .on-home-card{
        min-height:230px;
    }

    .on-home-public-box{
        grid-template-columns:1fr;
        gap:18px;
        padding:26px;
    }

}


@media(max-width:500px){

    .on-home-rate{
        padding:16px;
    }

    .on-home-rate-display{
        gap:3px;
    }

    .on-home-flip-digit{
        width:43px;
        height:62px;
        font-size:39px;
    }

    .on-home-flip-separator{
        width:10px;
        height:58px;
        font-size:34px;
    }

    .on-home-rate-unit{
        margin-left:4px;
        font-size:11px;
    }

    .on-home-actions{
        display:grid;
    }

}


/*
 * =========================================================
 * on-home-fuel-live-css-v2
 * Card Carburanți LIVE
 * =========================================================
 */

.on-home-fuel-live{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px;
    margin:18px 0 7px;
}

.on-home-fuel-item{
    min-width:0;
    padding:10px 8px;
    border:1px solid #e7e9ee;
    border-radius:9px;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7f8fa 100%
        );
}

.on-home-fuel-item span{
    display:block;
    overflow:hidden;
    margin-bottom:6px;
    color:#7a8190;
    font-size:9px;
    font-weight:700;
    line-height:1.2;
    text-overflow:ellipsis;
    text-transform:uppercase;
    white-space:nowrap;
    letter-spacing:.04em;
}

.on-home-fuel-item div{
    display:flex;
    align-items:baseline;
    gap:3px;
}

.on-home-fuel-item strong{
    color:#101828;
    font-size:18px;
    font-weight:800;
    line-height:1;
    letter-spacing:-.035em;
    font-variant-numeric:tabular-nums;
}

.on-home-fuel-item small{
    color:#98a2b3;
    font-size:8px;
    font-weight:600;
    white-space:nowrap;
}

.on-home-fuel-meta{
    margin:0 0 14px;
    color:#98a2b3;
    font-size:9px;
    font-weight:600;
    line-height:1.3;
}


@media(max-width:520px){

    .on-home-fuel-live{
        gap:5px;
    }

    .on-home-fuel-item{
        padding:9px 6px;
    }

    .on-home-fuel-item strong{
        font-size:16px;
    }

    .on-home-fuel-item small{
        font-size:7px;
    }

}

