/* ==========================================================================
   Hype Video Steps — Styles
   ========================================================================== */

:root {
    --hvs-wrapper-width: 800px;
    --hvs-video-width: 420px;
    --hvs-accent: #57FF9B;
    --hvs-bg: #000;
    --hvs-radius: 20px;
    --hvs-pill-radius: 50px;
}

/* ---------- Wrapper ---------- */
.hvs-wrapper {
    max-width: var(--hvs-wrapper-width);
    margin: 0 auto;
    font-family: 'Amazing views', 'Syne', Roboto, sans-serif;
    font-weight: 100;
    box-sizing: border-box;
}

.hvs-wrapper *,
.hvs-wrapper *::before,
.hvs-wrapper *::after {
    box-sizing: inherit;
}

.hvs-title {
    text-align: center;
    margin-bottom: 16px;

    h3{
        font-size: 65px;
    }
}

#hvs-title-anchor{
    scroll-margin-top: 100px;
}

/* ---------- Tab navigation (pill toggle) ---------- */
.hvs-tabs {
    position: relative;
    display: flex;
    background: #232323;
    border-radius: var(--hvs-pill-radius);
    /* padding: 4px; */
    margin: 0 auto 16px;

    &::hover, &::focus{
        background: initial;
    }
}

.hvs-tabs__slider {
    position: absolute;
    top: 0;
    left: 4px;
    /* height: calc(100% - 8px); */
    height: 100%;
    background: transparent; /* set by JS */
    border: 2px solid #232323;
    border-radius: var(--hvs-pill-radius);
    transition: left 0.3s ease, width 0.3s ease, background 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.hvs-tabs__btn {
    flex: 1;
    position: relative;
    z-index: 1;
    padding: 10px 12px;
    border: none !important;
    border-radius: var(--hvs-pill-radius);
    font-size: 19px;
    font-weight: 100;
    cursor: pointer;
    background: transparent !important;
    color: #fff; /* overridden by JS */
    text-align: center;
    transition: color 0.3s;
    white-space: nowrap;
    outline: none !important;
    box-shadow: none !important;
}

.hvs-tabs__btn:hover,
.hvs-tabs__btn:focus,
.hvs-tabs__btn:active {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}


/* Active tab text color is set by JS */

/* ---------- Video area ---------- */
.hvs-video-area {
    position: relative;
    max-width: var(--hvs-video-width);
    margin: 0 auto;
    overflow: visible;
}

/* ---------- Step counter (outside left) ---------- */
.hvs-step-counter {
    position: absolute;
    top: 12%;
    left: 0;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: transparent; /* set by JS */
    border: none;
    border-radius: var(--hvs-radius);
    padding: 25px 60px 20px;
    white-space: nowrap;
    transition: background 0.3s ease;
    overflow: visible;
}

/* Icon circle in top-left corner */
.hvs-step-counter__icon {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 65px;
    height: 65px;
    /* border: 1px solid #000; */
    /* background: #fff !important;
    border-radius: 50%; */
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 11;
}

.hvs-step-counter__icon svg {
    width: 70px;
    height: 70px;
    stroke: #000;
    fill: none;
}

.hvs-step-counter__text {
    font-size: 30px;
    font-weight: 100;
    color: #fff;
}

.hvs-step-counter__num {
    color: #fff;
}

/* ---------- Info zone (outside right) ---------- */
.hvs-info-zone {
    position: absolute;
    right: -35%;
    top: 80%;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 10px;
    border-radius: var(--hvs-radius);
    color: #000;
    padding-right: 50px;
}

.hvs-info-zone__icon{
    width: 40px;
    height: 40px;
    border: 2px solid #000;
    background: #fff !important;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.hvs-info-zone__icon svg {
    width: 20px;
    height: 20px;
    stroke: #000;
    fill: none;
}

.hvs-info-zone__text {
    font-family: 'Syne', Roboto, sans-serif;
    font-size: 18px;
    font-weight: 700;
}

/* ---------- Video container ---------- */
.hvs-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: var(--hvs-radius);
    overflow: hidden;
    background: #111;
}

.hvs-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.hvs-video--active {
    opacity: 1;
    pointer-events: auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    :root {
        --hvs-wrapper-width: 100%;
        --hvs-video-width: 85%;
    }

    .hvs-title {
        h3{
            font-size: 40px;
        }
    }

    .hvs-tabs{
        flex-flow: wrap;
        gap: 4px;
        border-radius: 20px;
    }

    /* Hide slider on mobile — active style applied directly to button */
    .hvs-tabs__slider {
        display: none !important;
    }

    .hvs-tabs__btn.hvs-tabs__btn--mobile-active {
        border-radius: var(--hvs-pill-radius);
        color: #fff !important;
    }

    .hvs-step-counter {
        left: 20%;
        top: 10%;
        padding: 15px 30px 12px;
    }

    .hvs-step-counter__icon {
        top: -10px;
        left: -10px;
        width: 40px;
        height: 40px;

        svg{
            width: 35px;
            height: 35px;
        }
    }

    .hvs-step-counter__text {
        font-size: 25px;
    }

    .hvs-info-zone{
        right: -10%;
        top: 90%;
        padding: 5px;
        padding-right: 50px;
    }
}
