/* ===== ARTIST PAGE — Cinematic Scroll-Driven Layout ===== */

/* ---------- Hero Section (100vh) ---------- */
.artist-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    will-change: transform, opacity;
    background-color: var(--grey-dark);
    margin-bottom: -2px;
}

.artist-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--artist-bg);
    background-size: cover;
    background-position: center top;
    z-index: 0;
    animation: artistBgZoom 8s ease-out forwards;
    will-change: transform;
}

@media (max-width: 768px) {
    .artist-hero::before {
        background-image: var(--artist-bg-mobile, var(--artist-bg));
        animation: artistBgZoomMobile 20s ease-out forwards;
        transform-origin: right center;
    }

    .artist-hero__content {
        padding: 0 20px 40px;
    }

    .artist-body__name {
        font-size: 5vw;
    }
}

/* Gradient overlay — real div, not pseudo-element (avoids compositing lag during parallax) */
.artist-hero__gradient {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(29, 29, 27, 0.3) 0%,
        rgba(29, 29, 27, 0.1) 40%,
        rgba(29, 29, 27, 0.6) 70%,
        var(--grey-dark) 100%
    );
    z-index: 1;
    opacity: 0;
    animation: artistGradientIn 3s ease forwards;
    pointer-events: none;
}

/* Hero content wrapper — stacks info above title */
.artist-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 0 40px 60px;
    max-width: 900px;
}

/* Date + tags above hero title */
.artist-hero__info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: artistFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.6s forwards;
}

.artist-hero__date {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.artist-hero__tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
}

.artist-hero__stage {
    font-size: 14px;
    font-weight: 700;
    /*color: var(--primary);*/
    text-align: center;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.artist-hero__tag {
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
}

/* Hero title — starts at 170px scale, transparent → 140px, full opacity */
.artist-hero__title {
    position: relative;
    font-family: var(--font-big-sexy-sans), serif;
    font-size: clamp(40px, 10vw, 120px);
    color: #fff;
    text-align: left;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: scale(1.2143);
    animation: artistTitleEntry 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    will-change: transform, opacity;
    font-weight: 500;
}

/* ---------- Two-Column Content Area ---------- */
.artist-body {
    padding: 60px 0 80px;
}

.artist-body__inner {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* -- Left column (bio, sticky on desktop) -- */
.artist-body__left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.artist-body__name {
    font-family: var(--font-big-sexy-sans), serif;
    font-size: clamp(28px, 5vw, 42px);
    color: #fff;
    text-transform: uppercase;
    line-height: 1.1;
    font-weight: 500;
}

/* Date + tags in sticky column */
.artist-body__meta {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.artist-body__date {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 5px;
}

.artist-body__stage {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 5px;
}

.artist-body__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.artist-body__tag {
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    font-weight: 600;
}

.artist-body__bio {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.artist-body__cta {
    display: inline-block;
    padding: 16px 36px;
    background-color: var(--secondary);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    font-size: 16px;
    transition: background-color 150ms ease-out;
    width: fit-content;
}

.artist-body__cta:hover {
    background-color: rgba(217, 160, 200, 0.6);
}

/* -- Right column (video, spotify, socials) -- */
.artist-body__right {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* Video */
.artist-video {
    border: 1px solid var(--primary);
}

.artist-video__wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    overflow: hidden;
    border-radius: 8px;
}

.artist-video__wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Spotify */
.artist-spotify-block {
    border: 1px solid var(--primary);
}

.artist-spotify-block iframe {
    width: 100%;
    border: 0;
}

/* Socials */
.artist-socials-block {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.artist-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: background 150ms ease-out;
}

.artist-social-btn:hover {
    background: var(--secondary);
}

.artist-social-btn svg {
    width: 24px;
    height: 24px;
}

/* ---------- Gallery (inside right column, between spotify & socials) ---------- */
.artist-gallery__grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.artist-gallery__grid a {
    display: block;
    overflow: hidden;
    pointer-events: none;
}

.artist-gallery__grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.artist-gallery__grid a.is-hidden {
    display: none;
}

.artist-gallery__more {
    display: block;
    margin: 12px auto 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    padding: 8px 0;
    font-family: 'Montserrat', sans-serif;
}

/* Desktop gallery: 2 columns, Photoswipe lightbox */
@media screen and (min-width: 1024px) {
    .artist-gallery__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .artist-gallery__grid a {
        border-radius: 4px;
        pointer-events: auto;
        cursor: pointer;
    }

    .artist-gallery__grid a.is-hidden {
        display: block;
    }

    .artist-gallery__grid img {
        height: 200px;
        transition: transform 0.3s ease;
    }

    .artist-gallery__grid a:hover img {
        transform: scale(1.05);
    }

    .artist-gallery__more {
        display: none;
    }
}

/* ---------- Animation Keyframes ---------- */
@keyframes artistBgZoom {
    0% {
        transform: scale(1.12);
    }
    100% {
        transform: scale(1.12);
    }
}

@keyframes artistBgZoomMobile {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

@keyframes artistGradientIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Title: 170px scale (1.2143x of 140px) + transparent → 140px + full opacity */
@keyframes artistTitleEntry {
    0% {
        transform: scale(1.2143);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes artistFadeUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes artistSlideLeft {
    from {
        transform: translateX(-60px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes artistSlideRight {
    from {
        transform: translateX(60px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ---------- Scroll-Reveal (hidden by default) ---------- */
.anim-reveal {
    opacity: 0;
    will-change: transform, opacity;
}

.anim-reveal.is-visible[data-anim="fade-up"] {
    animation: artistFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.anim-reveal.is-visible[data-anim="slide-left"] {
    animation: artistSlideLeft 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.anim-reveal.is-visible[data-anim="slide-right"] {
    animation: artistSlideRight 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ---------- Desktop (1024px+) ---------- */
@media screen and (min-width: 1024px) {
    .artist-hero__date {
        font-size: 18px;
    }

    .artist-hero__stage {
        font-size: 16px;
    }

    .artist-hero__tag {
        font-size: 13px;
    }

    .artist-body__inner {
        flex-direction: row;
        align-items: flex-start;
        gap: 60px;
    }

    .artist-body__left {
        flex: 0 0 40%;
        max-width: 40%;
        position: sticky;
        top: 100px; /* header height (80px) + 20px spacing */
        align-self: flex-start;
    }

    .artist-body__right {
        flex: 1;
        min-width: 0;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .artist-hero::before {
        animation: none;
        transform: none;
    }

    .artist-hero__gradient {
        animation: none;
        opacity: 1;
    }

    .artist-hero__title {
        animation: none;
        opacity: 1;
        transform: none;
        font-weight: 500;
    }

    .artist-hero__info {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .anim-reveal {
        opacity: 1;
        transform: none;
        will-change: auto;
    }

    .anim-reveal.is-visible[data-anim="fade-up"],
    .anim-reveal.is-visible[data-anim="slide-left"],
    .anim-reveal.is-visible[data-anim="slide-right"] {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
