/* =========================================
   LOOKBOOK PAGE STYLES
========================================= */

/* Reset some base variables for the lookbook specific aesthetic */
:root {
    --lookbook-text: #E6E3DB; /* Bone / off-white */
    --lookbook-accent: #B2D5E5; /* Candy Blue for hover/accents */
}

html, body.lookbook-page {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden; /* Let Swiper handle vertical scroll */
    background-color: #020202;
    color: var(--lookbook-text);
}

/* Specific Header tweaks for Lookbook */
.lookbook-header {
    position: fixed;
    background: transparent !important; /* Always transparent */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    pointer-events: auto; /* ensure links are clickable */
}

/* Swiper Container */
.lookbook-swiper {
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
}

.swiper-slide {
    position: relative;
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background Image & Overlay */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1); /* for parallax zoom effect */
    will-change: transform;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(2, 2, 2, 0.4) 0%, rgba(2, 2, 2, 0.1) 50%, rgba(2, 2, 2, 0.6) 100%);
    z-index: 2;
}

/* Main Content Wrapper */
.slide-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    padding: 0 4vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    pointer-events: none; /* Let mouse interact with bg if needed, though mostly for text */
}

/* Center Huge Typography */
.lookbook-center-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 10vh; /* Adjust based on header */
}

.col-title {
    font-size: clamp(4rem, 10vw, 12rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 0.85;
    margin: 0;
    text-transform: uppercase;
}

.col-name-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 3vw;
    margin-top: -1vw;
}

.col-name {
    font-size: clamp(4rem, 10vw, 12rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 0.85;
    text-transform: uppercase;
}

.col-year {
    font-size: clamp(1rem, 1.5vw, 2rem);
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    color: rgba(230, 227, 219, 0.6);
    transform: translateY(-2vw); /* raise it up a bit */
}

.col-numbers {
    display: flex;
    align-items: baseline;
    margin-left: 2vw;
}

.col-current {
    font-size: clamp(5rem, 12vw, 15rem);
    font-weight: 300;
    line-height: 0.8;
    letter-spacing: -0.05em;
}

.col-total {
    font-size: clamp(1rem, 2vw, 3rem);
    font-weight: 300;
    color: rgba(230, 227, 219, 0.5);
    margin-left: 0.5vw;
}

/* Bottom Row */
.slide-bottom-row {
    position: absolute;
    bottom: 5vh;
    right: 4vw;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2rem;
    max-width: 400px;
    text-align: right;
    pointer-events: auto; /* make button clickable */
}

.lookbook-desc p {
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 400;
    color: rgba(230, 227, 219, 0.9);
    margin: 0;
}

.list-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--lookbook-text);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.list-view-btn span {
    color: var(--lookbook-accent);
    font-size: 1.2rem;
    line-height: 1;
}

.list-view-btn:hover {
    color: var(--lookbook-accent);
}

/* Mask Effect Wrappers */
.mask-wrap {
    overflow: hidden;
    display: block; /* default */
}

/* Ensure inline layouts still work inside flex rows */
.col-name-row .mask-wrap {
    display: inline-block;
}

/* Initial state for GSAP animations */
.anim-text {
    display: inline-block;
    will-change: transform, opacity;
}

.anim-text-delay {
    display: inline-block;
    will-change: transform, opacity;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .lookbook-center-title {
        margin-top: 2vh;
    }

    .col-name-row {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
        margin-top: 0.8rem;
    }
    
    .col-year {
        transform: translateY(0);
        order: -1;
    }
    
    .col-numbers {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .slide-bottom-row {
        right: 0;
        left: 0;
        bottom: max(1.5rem, calc(env(safe-area-inset-bottom, 0px) + 2vh));
        max-width: 100%;
        padding: 0 5vw;
        align-items: center;
        text-align: center;
        gap: 0.8rem;
    }
}

@media (max-width: 600px) {
    .lookbook-header {
        padding-top: max(0.8rem, env(safe-area-inset-top, 0.8rem));
    }

    .lookbook-center-title {
        margin-top: -4vh; /* Збалансоване розташування: вільне дихання між хедером та нижнім блоком */
    }

    .col-title, .col-name {
        font-size: clamp(1.9rem, 8vw, 3.2rem);
        line-height: 0.92;
    }

    .col-name-row {
        margin-top: 0.4rem;
        gap: 0.3rem;
    }

    .col-numbers {
        margin-top: 0.3rem;
    }

    .col-current {
        font-size: clamp(2.3rem, 9.5vw, 3.6rem);
        line-height: 0.85;
    }

    .col-total {
        font-size: 0.95rem;
    }

    .slide-bottom-row {
        bottom: max(2rem, calc(env(safe-area-inset-bottom, 0px) + 3vh));
        gap: 0.75rem;
        padding: 0 6vw;
    }

    .lookbook-desc p {
        font-size: 0.82rem;
        line-height: 1.4;
        max-width: 320px;
        margin: 0 auto;
    }

    .list-view-btn {
        font-size: 0.75rem;
        letter-spacing: 0.12em;
        padding: 0.4rem 0.9rem;
    }
}

/* Спеціальний режим для невисоких мобільних екранів або активної панелі браузера */
@media (max-height: 700px) and (max-width: 600px) {
    .lookbook-center-title {
        margin-top: -5vh;
    }

    .col-title, .col-name {
        font-size: clamp(1.7rem, 7vw, 2.4rem);
    }

    .col-current {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .col-total {
        font-size: 0.85rem;
    }

    .col-name-row {
        margin-top: 0.25rem;
        gap: 0.2rem;
    }

    .col-numbers {
        margin-top: 0.2rem;
    }

    .slide-bottom-row {
        bottom: max(1.5rem, calc(env(safe-area-inset-bottom, 0px) + 2vh));
        gap: 0.5rem;
    }

    .lookbook-desc p {
        font-size: 0.78rem;
        line-height: 1.3;
        max-width: 290px;
    }
}

/* =========================================
   CUSTOM SWIPER SCROLLBAR
========================================= */
.custom-lookbook-scrollbar {
    position: absolute;
    right: 3px;
    top: 0;
    width: 8px !important;
    height: 100%;
    background: transparent !important;
    z-index: 50;
    pointer-events: none;
}

.custom-lookbook-scrollbar .swiper-scrollbar-drag {
    background: rgba(255, 255, 255, 0.35) !important;
    border-radius: 10px !important;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.2s ease;
}

.custom-lookbook-scrollbar .swiper-scrollbar-drag:hover {
    background: rgba(255, 255, 255, 0.6) !important;
}
