/* =================================================
   Now Entertainment – Gas Rating  |  Frontend CSS
   v6.0 - Responsive: Vertical on mobile, Horizontal on desktop
   ================================================= */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Barlow+Condensed:wght@400;700;900&display=swap');

/* ── Wrapper ── */
.now-rating-wrap {
    margin: 0 0 32px 0;
    display: flex;
    justify-content: flex-start;
}

/* ── Badge shell (MOBILE DEFAULT - VERTICAL) ── */
.now-rating-badge {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 160px;
    max-width: 200px;
    border-radius: 12px;
    padding: 18px 20px 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.45);
    border: 2px solid transparent;
    font-family: 'Oswald', 'Barlow Condensed', Impact, sans-serif;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.now-rating-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.55);
}

/* ── Pump icon ── */
.nrb-pump-icon {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

/* ── Body ── */
.nrb-body {
    width: 100%;
}

.nrb-number {
    font-size: 52px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.nrb-unit {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 2px;
    opacity: 0.85;
}

.nrb-divider {
    height: 2px;
    border-radius: 2px;
    margin: 8px auto;
    width: 60%;
    opacity: 0.4;
    background: currentColor;
}

.nrb-grade {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nrb-sub {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 3px;
    letter-spacing: 0.05em;
}

/* ── Flame emoji ── */
.nrb-flame {
    font-size: 20px;
    margin-top: 10px;
}

/* ── Tagline strip ── */
.nrb-tagline {
    font-size: 8px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-top: 8px;
    font-weight: 600;
}

/* ══════════════════════════════════════════
   DESKTOP HORIZONTAL LAYOUT (768px+)
   ══════════════════════════════════════════ */

@media (min-width: 768px) {
    .now-rating-badge {
        flex-direction: row;
        align-items: center;
        min-width: 320px;
        max-width: 420px;
        padding: 16px 20px;
        text-align: left;
    }

    .nrb-pump-icon {
        font-size: 40px;
        margin-bottom: 0;
        margin-right: 16px;
        flex-shrink: 0;
    }

    .nrb-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .nrb-number {
        font-size: 48px;
        line-height: 1;
    }

    .nrb-unit {
        font-size: 10px;
        margin-top: 0;
    }

    .nrb-divider {
        width: 80%;
        margin: 6px 0;
    }

    .nrb-grade {
        font-size: 12px;
    }

    .nrb-sub {
        font-size: 9px;
        margin-top: 2px;
    }

    .nrb-flame {
        font-size: 28px;
        margin-top: 0;
        margin-left: 12px;
        flex-shrink: 0;
    }

    .nrb-tagline {
        position: absolute;
        bottom: 4px;
        left: 0;
        right: 0;
        text-align: center;
        margin-top: 0;
        font-size: 7px;
    }
}

/* ══════════════════════════════════════════
   GRADE THEMES
   ══════════════════════════════════════════ */

/* 100 – Legendary (gold) */
.now-rating-badge--legendary {
    background: linear-gradient(145deg, #1a1400, #2e2200, #1a1400);
    border-color: #ffd700;
    color: #ffd700;
}
.now-rating-badge--legendary .nrb-number {
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255,215,0,0.6), 0 2px 8px rgba(0,0,0,0.8);
}
.now-rating-badge--legendary .nrb-divider { background: #ffd700; opacity: 0.6; }
.now-rating-badge--legendary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(255,215,0,0.12) 0%, transparent 70%);
    pointer-events: none;
}

/* 93 – Super Premium (fire orange) */
.now-rating-badge--super {
    background: linear-gradient(145deg, #1c0a00, #2d1200, #1c0a00);
    border-color: #ff6b00;
    color: #ff9a44;
}
.now-rating-badge--super .nrb-number {
    color: #ff6b00;
    text-shadow: 0 0 18px rgba(255,107,0,0.7), 0 2px 8px rgba(0,0,0,0.8);
}
.now-rating-badge--super .nrb-divider { background: #ff6b00; opacity: 0.6; }
.now-rating-badge--super::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(255,107,0,0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* 89 – Plus (electric blue) */
.now-rating-badge--plus {
    background: linear-gradient(145deg, #050f1e, #0a1c36, #050f1e);
    border-color: #3d9aff;
    color: #7dbfff;
}
.now-rating-badge--plus .nrb-number {
    color: #4da8ff;
    text-shadow: 0 0 18px rgba(77,168,255,0.6), 0 2px 8px rgba(0,0,0,0.8);
}
.now-rating-badge--plus .nrb-divider { background: #4da8ff; opacity: 0.6; }
.now-rating-badge--plus::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(77,168,255,0.12) 0%, transparent 70%);
    pointer-events: none;
}

/* 87 – Regular (silver/steel) */
.now-rating-badge--regular {
    background: linear-gradient(145deg, #141414, #222, #141414);
    border-color: #666;
    color: #aaa;
}
.now-rating-badge--regular .nrb-number {
    color: #ccc;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.now-rating-badge--regular .nrb-divider { background: #888; opacity: 0.5; }

/* Empty Tank – red/dark */
.now-rating-badge--empty {
    background: linear-gradient(145deg, #1a0505, #2a0808, #1a0505);
    border-color: #cc2200;
    color: #e05555;
}
.now-rating-badge--empty .nrb-number {
    color: #cc2200;
    font-size: 44px;
    text-shadow: 0 0 12px rgba(204,34,0,0.5), 0 2px 8px rgba(0,0,0,0.8);
}
.now-rating-badge--empty .nrb-divider { background: #cc2200; opacity: 0.5; }

/* ── Responsive Mobile Adjustments ── */
@media (max-width: 767px) {
    .now-rating-wrap {
        justify-content: center;
        margin-bottom: 24px;
    }
    .now-rating-badge {
        min-width: 140px;
    }
    .nrb-number { font-size: 44px; }
}
