/**
 * WS Booster - Horizontal Panels
 */
.ws-hp {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.ws-hp__track {
    display: flex;
    flex-wrap: nowrap;
    will-change: transform;
}

.ws-hp__panel {
    flex: 0 0 auto;
    width: 100vw;
    height: 100vh;
    min-height: 500px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.ws-hp__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    z-index: 0;
    pointer-events: none;
}

.ws-hp__panel-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.ws-hp__panel-inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.ws-hp__subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
    opacity: 0.75;
}

.ws-hp__title {
    font-size: clamp(36px, 5vw, 72px);
    line-height: 1.05;
    margin: 0 0 20px;
    font-weight: 700;
}

.ws-hp__content {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 28px;
    opacity: 0.9;
}

.ws-hp__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: currentColor;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease;
    font-weight: 500;
}

.ws-hp__cta:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

.ws-hp__cta::after {
    content: "\2192";
    transition: transform 0.3s ease;
}

.ws-hp__cta:hover::after {
    transform: translateX(4px);
}

.ws-hp__progress {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: min(320px, 50vw);
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    overflow: hidden;
    z-index: 20;
}

.ws-hp__progress-bar {
    height: 100%;
    width: 0%;
    background: #ef3340;
    border-radius: 999px;
    transition: width 0.1s linear;
}

.ws-hp__counter {
    position: absolute;
    top: 24px;
    right: 32px;
    z-index: 20;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
    font-feature-settings: "tnum";
    pointer-events: none;
}

.ws-hp__counter span {
    color: #ef3340;
    font-weight: 600;
}

/* ============ EDITOR : preview horizontale scrollable ============ */
.ws-hp--editor {
    overflow: hidden;
    border-radius: 12px;
    background: #0a0a0a;
    position: relative;
}

.ws-hp--editor .ws-hp__editor-hint {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    background: rgba(239, 51, 64, 0.9);
    color: #fff;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    pointer-events: none;
}

.ws-hp--editor .ws-hp__track {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #ef3340 rgba(255,255,255,0.1);
    transform: none !important;
}

.ws-hp--editor .ws-hp__track::-webkit-scrollbar {
    height: 6px;
}
.ws-hp--editor .ws-hp__track::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.06);
}
.ws-hp--editor .ws-hp__track::-webkit-scrollbar-thumb {
    background: #ef3340;
    border-radius: 3px;
}

.ws-hp--editor .ws-hp__panel {
    width: 75%;
    min-width: 320px;
    height: 420px;
    min-height: 0;
    scroll-snap-align: start;
    flex: 0 0 75%;
}

.ws-hp--editor .ws-hp__panel:first-child {
    margin-left: 0;
}

.ws-hp--editor .ws-hp__title {
    font-size: clamp(24px, 3vw, 40px);
}

.ws-hp--editor .ws-hp__content {
    font-size: 14px;
}

.ws-hp--editor .ws-hp__progress,
.ws-hp--editor .ws-hp__counter {
    display: none;
}

@media (max-width: 768px) {
    .ws-hp__panel {
        height: 80vh;
    }
    .ws-hp__title {
        font-size: clamp(28px, 8vw, 44px);
    }
    .ws-hp__counter {
        top: 16px;
        right: 16px;
        font-size: 11px;
    }
}
