/* ================================================================
   Hero Banner Slider - image-led PadniSi banners. Prefix: .hbs-
   ================================================================ */

.hero-banner-slider {
    position: relative;
    width: 100%;
    min-height: 325px;
    overflow: hidden;
    border-radius: 8px;
    margin: 1rem 0 1.35rem;
    background: #071426;
    box-shadow: 0 18px 45px rgba(5, 18, 38, 0.12);
}

.hbs-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 35%);
    align-items: center;
    gap: 1.25rem;
    padding: 1.65rem 4rem 4.5rem;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.65s ease, visibility 0.65s ease;
    isolation: isolate;
}

.hbs-slide::before,
.hbs-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.hbs-slide::before {
    opacity: 0.9;
}

.hbs-slide::after {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.18;
}

.hbs-slide.hbs-slide--active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hbs-banner-copy {
    position: relative;
    z-index: 2;
    max-width: 570px;
}

.hbs-headline {
    margin: 0 0 1rem;
    font-family: "Poppins", sans-serif;
    line-height: 1.02;
    letter-spacing: 0;
}

.hbs-line {
    display: block;
}

.hbs-line--primary {
    font-size: clamp(1.85rem, 3.8vw, 3.1rem);
    font-weight: 900;
}

.hbs-line--secondary {
    font-size: clamp(1rem, 1.7vw, 1.32rem);
    font-weight: 500;
}

.hbs-line--accent {
    font-size: clamp(1.25rem, 2.55vw, 2.15rem);
    font-weight: 800;
}

.hbs-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.48rem;
    min-height: 38px;
    padding: 0.58rem 1.18rem;
    border: 0;
    border-radius: 999px;
    font-family: "Poppins", sans-serif;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.hbs-cta:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.hbs-banner-visual {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.hbs-banner-visual img {
    display: block;
    width: min(100%, 225px);
    max-height: 165px;
    object-fit: contain;
    filter: drop-shadow(0 24px 25px rgba(0, 0, 0, 0.28));
}

.hbs-queue {
    display: inline-flex;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.26);
    font-size: 1.5rem;
}

.hbs-queue__lead {
    color: rgba(255, 255, 255, 0.95);
}

.hbs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
    font-family: "Montserrat", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.hbs-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff9a1f;
    box-shadow: 0 0 0 5px rgba(255, 154, 31, 0.12);
}

.hbs-profile-icon {
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.52);
    border-radius: 50%;
    color: #fff;
    font-size: 1.55rem;
}

/* Themes ------------------------------------------------------- */
.hbs-slide--buy {
    background:
        radial-gradient(circle at 78% 50%, rgba(40, 137, 255, 0.28), transparent 31%),
        linear-gradient(135deg, #0b3d86 0%, #071f4b 54%, #081631 100%);
}

.hbs-slide--buy::before {
    background:
        radial-gradient(ellipse at 24% 8%, rgba(255, 255, 255, 0.1), transparent 28%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.03), transparent 42%);
}

.hbs-slide--buy .hbs-line--secondary {
    color: rgba(255, 255, 255, 0.88);
}

.hbs-slide--buy .hbs-cta {
    background: #fff;
    color: #0b3d86;
    box-shadow: 0 11px 24px rgba(0, 0, 0, 0.2);
}

.hbs-slide--market {
    background:
        linear-gradient(90deg, rgba(0, 206, 201, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(0, 206, 201, 0.04) 1px, transparent 1px),
        linear-gradient(135deg, #011315 0%, #06282d 62%, #07393e 100%);
    background-size: 44px 44px, 44px 44px, auto;
}

.hbs-slide--market::before {
    background: radial-gradient(circle at 76% 52%, rgba(0, 206, 201, 0.18), transparent 34%);
}

.hbs-slide--market .hbs-line--primary {
    color: #22f2ef;
}

.hbs-slide--market .hbs-line--secondary {
    color: rgba(255, 255, 255, 0.7);
}

.hbs-slide--market .hbs-cta {
    background: transparent;
    border: 1px solid #22f2ef;
    color: #22f2ef;
}

.hbs-slide--market .hbs-cta:hover {
    background: #22f2ef;
    color: #021b1f;
}

.hbs-slide--hour {
    background:
        radial-gradient(circle at 78% 44%, rgba(255, 176, 49, 0.3), transparent 24%),
        linear-gradient(135deg, #8b2500 0%, #a73700 48%, #6f1b00 100%);
}

.hbs-slide--hour::before {
    background:
        radial-gradient(circle at 82% 45%, transparent 0 58px, rgba(255, 187, 59, 0.35) 59px, transparent 61px),
        radial-gradient(circle at 82% 45%, transparent 0 96px, rgba(255, 187, 59, 0.2) 97px, transparent 99px);
}

.hbs-slide--hour .hbs-line--primary {
    font-size: clamp(2.25rem, 5vw, 3.8rem);
    text-transform: uppercase;
}

.hbs-slide--hour .hbs-line--secondary {
    color: rgba(255, 255, 255, 0.9);
}

.hbs-slide--hour .hbs-cta {
    background: #ff6b16;
    color: #fff;
    box-shadow: 0 10px 20px rgba(111, 27, 0, 0.32);
}

.hbs-slide--discover {
    background:
        radial-gradient(circle at 80% 50%, rgba(126, 87, 255, 0.34), transparent 30%),
        linear-gradient(135deg, #17145a 0%, #211b72 55%, #0f1349 100%);
}

.hbs-slide--discover .hbs-line--accent {
    color: #ffc51d;
    font-style: italic;
    font-weight: 600;
}

.hbs-slide--discover .hbs-line--primary {
    font-size: clamp(2rem, 4.4vw, 3.45rem);
}

.hbs-slide--discover .hbs-cta {
    background: #ffc51d;
    color: #17145a;
}

.hbs-slide--drop {
    background:
        repeating-linear-gradient(90deg, rgba(73, 133, 207, 0.15) 0 2px, transparent 2px 64px),
        linear-gradient(135deg, #061525 0%, #0a2942 58%, #07111d 100%);
}

.hbs-slide--drop::before {
    background-image:
        linear-gradient(180deg, rgba(73, 133, 207, 0.32), rgba(73, 133, 207, 0.03));
    mask-image: repeating-linear-gradient(90deg, #000 0 12px, transparent 12px 54px);
    opacity: 0.35;
}

.hbs-slide--drop .hbs-line--accent {
    color: #ff741a;
}

.hbs-slide--drop .hbs-line--primary {
    font-weight: 500;
}

.hbs-slide--drop .hbs-cta {
    background: #fff;
    color: #132139;
}

.hbs-slide--sell {
    background:
        radial-gradient(circle at 76% 42%, rgba(26, 109, 214, 0.12), transparent 28%),
        linear-gradient(135deg, #f5ead6 0%, #f2e4cc 58%, #ded4c1 100%);
    color: #101822;
}

.hbs-slide--sell::after {
    opacity: 0.32;
    background-image: radial-gradient(circle, rgba(16, 24, 34, 0.14) 1px, transparent 1px);
}

.hbs-slide--sell .hbs-line--primary {
    color: #101822;
    font-size: clamp(2.6rem, 5.2vw, 4.45rem);
    text-transform: uppercase;
}

.hbs-slide--sell .hbs-line--secondary {
    color: #111827;
}

.hbs-slide--sell .hbs-line--accent {
    color: #0368c9;
    font-size: clamp(1.2rem, 2.3vw, 1.7rem);
}

.hbs-slide--sell .hbs-cta {
    background: #132139;
    color: #fff;
}

.hbs-slide--wallet {
    background:
        linear-gradient(90deg, rgba(250, 180, 28, 0.95) 0 8px, transparent 8px),
        radial-gradient(circle at 78% 50%, rgba(255, 191, 57, 0.1), transparent 25%),
        linear-gradient(135deg, #070a0e 0%, #0a0d10 55%, #11151a 100%);
}

.hbs-slide--wallet::before {
    background:
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 8px, transparent 8px 18px);
    opacity: 0.55;
}

.hbs-slide--wallet .hbs-line--primary {
    font-size: clamp(1.65rem, 3.4vw, 2.85rem);
    text-transform: uppercase;
}

.hbs-slide--wallet .hbs-line--accent {
    color: #ffc42b;
    font-size: clamp(1.45rem, 3.15vw, 2.55rem);
    text-transform: uppercase;
}

.hbs-slide--profile {
    background:
        radial-gradient(circle at 82% 48%, rgba(117, 211, 255, 0.28), transparent 24%),
        linear-gradient(135deg, #078edf 0%, #0872c7 50%, #034a91 100%);
}

.hbs-slide--profile .hbs-banner-copy {
    padding-left: 4.25rem;
}

.hbs-slide--profile::before {
    background:
        radial-gradient(circle at 18% 50%, rgba(255, 255, 255, 0.12), transparent 10%),
        linear-gradient(110deg, rgba(255, 255, 255, 0.1), transparent 42%);
}

.hbs-slide--profile .hbs-line--primary {
    font-size: clamp(1.95rem, 3.7vw, 2.75rem);
}

.hbs-slide--profile .hbs-line--secondary {
    color: rgba(255, 255, 255, 0.9);
}

.hbs-slide--profile .hbs-cta {
    background: #fff;
    color: #0872c7;
    padding: 0.65rem 1.45rem;
    box-shadow: 0 12px 28px rgba(3, 74, 145, 0.25);
}

.hbs-slide--profile .hbs-cta:hover {
    background: #f8faff;
    color: #034a91;
    transform: translateY(-2px);
}

/* Progress ----------------------------------------------------- */
.hbs-progress {
    display: none;
}

.hbs-progress-fill {
    height: 100%;
    width: 0;
    background: rgba(255, 255, 255, 0.62);
}

.hbs-progress-fill.hbs-progressing {
    animation: hbs-progress-run 6s linear forwards;
}

@keyframes hbs-progress-run {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* Live data bar ------------------------------------------------ */
.hbs-live-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 7;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1.15rem;
    min-height: 52px;
    padding: 0.45rem 1rem;
    background: rgba(0, 0, 0, 0.45);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hbs-live-bar .hero-drop-counter {
    background: transparent;
    min-height: auto;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
    gap: 0.42rem;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.hbs-live-bar .hero-drop-dot {
    width: 8px;
    height: 8px;
}

.hbs-live-bar .hero-drop-ticker-wrap {
    height: 34px;
    max-width: none;
    margin: 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.hbs-live-bar .ticker-pill {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.17);
}

/* Slide entrance ----------------------------------------------- */
.hbs-slide.hbs-slide--active .hbs-banner-copy {
    animation: hbs-copy-in 0.55s ease-out both;
}

.hbs-slide.hbs-slide--active .hbs-banner-visual {
    animation: hbs-visual-in 0.62s 0.08s ease-out both;
}

@keyframes hbs-copy-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hbs-visual-in {
    from {
        opacity: 0;
        transform: translateX(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Responsive --------------------------------------------------- */
@media (max-width: 992px) {
    .hero-banner-slider {
        min-height: 270px;
    }

    .hbs-slide {
        grid-template-columns: minmax(0, 1fr) minmax(190px, 34%);
        padding: 1.65rem 2.1rem 4.5rem;
    }

    .hbs-banner-visual img {
        max-height: 155px;
    }

    .hbs-profile-icon {
        position: static;
        margin-bottom: 1.15rem;
        width: 52px;
        height: 52px;
        font-size: 1.35rem;
    }

    .hbs-slide--profile .hbs-banner-copy {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .hero-banner-slider {
        min-height: 430px;
        border-radius: 8px;
    }

    .hbs-slide {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        align-content: start;
        gap: 0.6rem;
        padding: 1.45rem 1.25rem 6.5rem;
        text-align: left;
    }

    .hbs-banner-copy {
        max-width: none;
    }

    .hbs-line--primary {
        font-size: clamp(1.85rem, 9vw, 3rem);
    }

    .hbs-line--secondary {
        font-size: clamp(0.98rem, 4.3vw, 1.25rem);
    }

    .hbs-line--accent {
        font-size: clamp(1.25rem, 6.5vw, 2rem);
    }

    .hbs-banner-visual {
        justify-content: flex-end;
        min-height: 130px;
    }

    .hbs-banner-visual img {
        width: min(52vw, 190px);
        max-height: 150px;
    }

    .hbs-slide--profile .hbs-banner-visual {
        position: absolute;
        right: 1rem;
        bottom: 5.1rem;
        min-height: 0;
        justify-content: flex-end;
    }

    .hbs-slide--profile .hbs-banner-visual img {
        width: min(32vw, 118px);
        max-height: 100px;
    }

    .hbs-live-bar {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        min-height: 76px;
        padding: 0.55rem 0.9rem;
    }

    .hbs-live-bar .hero-drop-counter {
        font-size: 0.76rem;
    }

    .hbs-live-bar .hero-drop-ticker-wrap {
        height: 34px;
    }
}

@media (max-width: 480px) {
    .hero-banner-slider {
        min-height: 405px;
    }

    .hbs-slide {
        padding-inline: 1rem;
    }

    .hbs-queue {
        font-size: 1.35rem;
        gap: 0.32rem;
        margin-bottom: 0.7rem;
    }

    .hbs-cta {
        min-height: 38px;
        padding: 0.58rem 1rem;
        font-size: 0.84rem;
    }
}
