/* Sakura Management — Perfil de talento (editorial) */

:root {
    --sakura-surface: #f9f9f7;
    --sakura-surface-container-low: #f4f4f2;
    --sakura-on-surface: #1a1c1b;
    --sakura-on-surface-variant: #504444;
    --sakura-secondary: #006a65;
    --sakura-outline-variant: #d4c2c2;
    --sakura-margin-desktop: 64px;
    --sakura-margin-mobile: 20px;
    --sakura-gutter: 24px;
    --sakura-stack-md: 16px;
    --sakura-stack-lg: 32px;
    --sakura-stack-xl: 64px;
    --talent-photo-width: 220px;
    --talent-photo-height: 320px;
    --talent-photo-gap: 16px;
    --talent-slide-step: 236px;
    --talent-carousel-width: calc((var(--talent-photo-width) * 3) + (var(--talent-photo-gap) * 2));
}

body.talent-profile-page {
    color: var(--sakura-on-surface);
    font-family: "Plus Jakarta Sans", sans-serif;
}

body.talent-profile-page > *:not(nav.navbar) {
    position: relative;
    z-index: 1;
}

body.talent-profile-page .navbar,
body.talent-profile-page .explore-popup,
body.talent-profile-page #navbarCollapse {
    z-index: 1030;
}

/* Restaurar sticky-top del home; el position:relative del body>* rompía sticky y top:-100px ocultaba la barra */
body.talent-profile-page .navbar.sticky-top {
    position: sticky;
    top: 0;
}

body.talent-profile-page .explore-popup {
    z-index: 1050;
}

/* Perfil */
.talent-profile {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--sakura-stack-lg) var(--sakura-margin-desktop) var(--sakura-stack-xl);
}

.talent-profile__inner {
    display: flex;
    flex-direction: column;
    gap: var(--sakura-stack-xl);
}

.talent-profile__hero {
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr) auto;
    gap: var(--sakura-gutter);
    align-items: start;
}

.talent-profile__date {
    margin: 0;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sakura-on-surface-variant);
}

.talent-profile__brand img {
    display: block;
    width: 140px;
    height: auto;
}

.talent-profile__identity {
    display: flex;
    flex-direction: column;
    gap: var(--sakura-stack-md);
    padding-top: 0;
}

.talent-profile__name {
    margin: var(--sakura-stack-md) 0 0;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: clamp(1.5rem, 2.4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sakura-secondary);
}

.talent-profile__media {
    min-width: 0;
}

.talent-profile__reel,
.talent-profile__gallery-only {
    display: flex;
    flex-direction: column;
    gap: var(--sakura-stack-md);
}

.talent-profile__video {
    overflow: hidden;
    width: 100%;
    max-width: var(--talent-carousel-width);
    aspect-ratio: 16 / 9;
    height: auto;
    position: relative;
    border-radius: 0.25rem;
    background: #000;
}

.talent-profile__video iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.talent-profile__viewport {
    width: 100%;
    max-width: var(--talent-carousel-width);
    overflow: hidden;
    position: relative;
}

.talent-profile__gallery {
    display: flex;
    flex-direction: row;
    gap: var(--talent-photo-gap);
    transition: transform 0.5s ease;
}

.talent-profile__photo {
    flex: 0 0 var(--talent-photo-width);
    width: var(--talent-photo-width);
    height: var(--talent-photo-height);
    object-fit: cover;
    object-position: center top;
    cursor: pointer;
    border-radius: 0.25rem;
    background: var(--sakura-surface-container-low);
}

.talent-profile__nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--sakura-outline-variant);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sakura-on-surface);
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 2;
}

.talent-profile__nav-btn:hover {
    background: var(--sakura-secondary);
    color: #fff;
    border-color: var(--sakura-secondary);
}

.talent-profile__nav-btn--prev {
    left: 4px;
}

.talent-profile__nav-btn--next {
    right: 4px;
}

.talent-profile__social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding-top: 8px;
}

.talent-profile__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--sakura-on-surface);
    transition: color 0.2s ease, transform 0.2s ease;
}

.talent-profile__social-link:hover {
    color: var(--sakura-secondary);
    transform: translateY(-2px);
}

.talent-profile__social-link img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: grayscale(1) brightness(0.25);
    transition: filter 0.2s ease;
}

.talent-profile__social-link:hover img {
    filter: grayscale(0) brightness(1);
}

.talent-profile__bio {
    border-top: 1px solid var(--sakura-outline-variant);
    padding-top: var(--sakura-stack-lg);
}

.talent-profile__descbox {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
}

.talent-profile__desc {
    white-space: pre-wrap;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--sakura-on-surface-variant);
}

/* Preview modal */
body.talent-profile-page #preview {
    align-items: center;
    justify-content: center;
    cursor: default;
}

body.talent-profile-page #preview .preview-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 95vw;
    max-height: 90vh;
}

body.talent-profile-page #preview .preview-image-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
}

body.talent-profile-page #preview .preview-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1001;
    width: 36px;
    height: 36px;
    padding: 6px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.talent-profile-page #preview .preview-close img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

body.talent-profile-page #preview img#actual_image {
    max-height: 80vh;
    max-width: 90vw;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

body.talent-profile-page #preview .preview-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    cursor: pointer;
    z-index: 1000;
}

body.talent-profile-page #preview .preview-nav--prev {
    left: -60px;
}

body.talent-profile-page #preview .preview-nav--next {
    right: -60px;
}

/* Responsive */
@media (max-width: 991px) {
    .talent-profile {
        padding-left: var(--sakura-margin-mobile);
        padding-right: var(--sakura-margin-mobile);
    }

    .talent-profile__hero {
        grid-template-columns: 1fr;
        gap: var(--sakura-stack-lg);
    }

    .talent-profile__social {
        flex-direction: row;
        justify-content: flex-start;
        flex-wrap: wrap;
        padding-top: 0;
    }

    .talent-profile__viewport,
    .talent-profile__video {
        max-width: 100%;
    }

    .talent-profile__video {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .talent-profile__name {
        font-size: clamp(1.35rem, 5vw, 2rem);
    }
}

@media (max-width: 575px) {
    :root {
        --talent-photo-width: 140px;
        --talent-photo-height: 210px;
        --talent-slide-step: 156px;
        --talent-carousel-width: 100%;
    }

    .talent-profile {
        padding-top: var(--sakura-stack-md);
        padding-bottom: var(--sakura-stack-lg);
    }

    .talent-profile__brand img {
        width: 100px;
    }

    .talent-profile__desc {
        font-size: 15px;
    }

    body.talent-profile-page #preview .preview-nav--prev {
        left: 8px;
    }

    body.talent-profile-page #preview .preview-nav--next {
        right: 8px;
    }
}
