/* ============================================
   Profiel Template - Stylesheet
   ============================================ */

/* ---- Hero ---- */
.profiel-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.profiel-hero__background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.profiel-hero__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.profiel-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to right,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.45) 45%,
            rgba(0, 0, 0, 0.15) 100%
        ),
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.35) 0%,
            rgba(0, 0, 0, 0.55) 60%,
            rgba(0, 0, 0, 0.85) 100%
        );
    z-index: 1;
}

.profiel-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 6rem 5% 4rem;
}

.profiel-hero__intro {
    max-width: 600px;
}

.profiel-hero__intro .section-label {
    color: var(--accent-red);
}

.profiel-hero__intro h1 {
    color: var(--warm-white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.profiel-hero__subtitle {
    color: rgba(255, 253, 251, 0.85);
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 480px;
}

.profiel-hero__meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.25rem;
}

.profiel-hero__meta span {
    color: rgba(255, 253, 251, 0.7);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
}

.profiel-hero__meta span + span::before {
    content: '';
    position: absolute;
    left: -0.85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 253, 251, 0.4);
}

/* ---- Bio Section ---- */
.profiel-bio {
    background: var(--warm-white);
    padding: 4rem 5%;
}

.profiel-bio__inner {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 2.5rem;
}

.profiel-bio__block h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 0.75rem;
    font-family: 'Lato', sans-serif;
}

.profiel-bio__block p {
    color: var(--slate);
    line-height: 1.9;
    font-size: 1.05rem;
}

.profiel-bio__block p + p {
    margin-top: 0.75rem;
}

.profiel-bio__lead {
    font-family: 'Cypress', 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--accent-red);
    font-weight: 400;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.profiel-bio__block--narrator {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--soft-sand);
}

.profiel-bio__block--highlight {
    background: var(--cream-white);
    padding: 2.5rem;
    border-radius: 16px;
    border-left: 3px solid var(--brand-red);
}

/* ---- Voice Section (Immersive Player) ---- */
.profiel-voice {
    background: var(--cream-white);
    padding: 4rem 5%;
}

.profiel-voice__card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--warm-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(61, 74, 92, 0.1);
    display: grid;
    grid-template-columns: 200px 1fr;
}

.profiel-voice__visual {
    position: relative;
    overflow: hidden;
}

.profiel-voice__avatar {
    width: 100%;
    height: 100%;
}

.profiel-voice__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profiel-voice__pulse {
    position: absolute;
    inset: 0;
    background: rgba(80, 116, 145, 0.15);
    opacity: 0;
    transition: opacity 0.3s;
}

.profiel-voice__pulse.is-playing {
    opacity: 1;
    animation: voicePulse 2s ease-in-out infinite;
}

@keyframes voicePulse {
    0%, 100% { background: rgba(80, 116, 145, 0.1); }
    50% { background: rgba(80, 116, 145, 0.25); }
}

.profiel-voice__body {
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.profiel-voice__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-red);
}

.profiel-voice__title {
    font-family: 'Cypress', 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--blue);
    line-height: 1.3;
}

.profiel-voice__sub {
    color: var(--slate);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.profiel-voice__controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profiel-voice__play {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    border: none;
    background: var(--blue);
    color: var(--warm-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(80, 116, 145, 0.3);
}

.profiel-voice__play:hover {
    background: var(--deep-blue-grey);
    transform: scale(1.05);
}

.profiel-voice__play svg {
    width: 18px;
    height: 18px;
}

.profiel-voice__play .play-icon {
    margin-left: 2px;
}

.profiel-voice__track {
    flex: 1;
    position: relative;
    height: 36px;
    display: flex;
    align-items: center;
}

.profiel-voice__waveform {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 2px;
    pointer-events: none;
}

.profiel-voice__waveform .bar {
    flex: 1;
    background: var(--soft-sand);
    border-radius: 2px;
    transition: background 0.15s ease;
}

.profiel-voice__waveform .bar.active {
    background: var(--blue);
}

.profiel-voice__range {
    width: 100%;
    height: 36px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.profiel-voice__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--blue);
    border: 2px solid var(--warm-white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.profiel-voice__range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--blue);
    border: 2px solid var(--warm-white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.profiel-voice__range::-webkit-slider-runnable-track { height: 3px; background: transparent; }
.profiel-voice__range::-moz-range-track { height: 3px; background: transparent; }

.profiel-voice__time {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--slate);
    min-width: 36px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ---- Music Section (Spotify Embeds) ---- */
.profiel-music {
    padding: 5rem 5%;
    background: var(--cream-white);
}

.profiel-music__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.profiel-music__header h2 {
    margin-top: 0.5rem;
}

.profiel-music__sub {
    color: var(--slate);
    font-size: 0.95rem;
    margin-top: 0.75rem;
}

.profiel-music__tracks {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.music-embed {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(61, 74, 92, 0.08);
}

.music-embed iframe {
    display: block;
    border-radius: 12px;
}

/* ---- Quotes Section ---- */
.profiel-quotes {
    padding: 4rem 5%;
    background: var(--cream-white);
}

.profiel-quotes__inner {
    max-width: 800px;
    margin: 0 auto;
}

.profiel-quotes__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.profiel-quotes__header h2 {
    margin-top: 0.5rem;
}

.profiel-quotes__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.quote-card {
    background: var(--warm-white);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
}

.quote-card::before {
    content: '\201C';
    position: absolute;
    top: 0.5rem;
    left: 1.25rem;
    font-family: 'Cypress', serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--warm-sand);
    opacity: 0.5;
    pointer-events: none;
}

.quote-card__text {
    font-style: italic;
    color: var(--deep-blue-grey);
    font-size: 1rem;
    line-height: 1.7;
    position: relative;
}

/* (old audio styles removed - replaced by voice section) */

/* ---- Gallery ---- */
.profiel-gallery {
    padding: 5rem 5%;
    background: var(--cream-white);
}

.profiel-gallery__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.profiel-gallery__header h2 {
    margin-top: 0.5rem;
}

.profiel-gallery__mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.profiel-gallery__item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

.profiel-gallery__item--wide {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
}

.profiel-gallery__item--full {
    grid-column: 1 / -1;
    aspect-ratio: 3 / 1;
}

.profiel-gallery__image {
    width: 100%;
    height: 100%;
}

.profiel-gallery__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profiel-gallery__item:hover .profiel-gallery__image img {
    transform: scale(1.05);
}

.profiel-gallery__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 1.25rem 1.25rem;
    background: linear-gradient(to top, rgba(61, 74, 92, 0.7) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profiel-gallery__item:hover .profiel-gallery__caption {
    opacity: 1;
}

.profiel-gallery__caption span {
    color: var(--warm-white);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* ---- Lightbox ---- */
.profiel-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(20, 25, 32, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profiel-lightbox.is-open {
    display: flex;
    opacity: 1;
}

.profiel-lightbox__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.profiel-lightbox__close:hover {
    color: #fff;
}

.profiel-lightbox__close svg {
    width: 100%;
    height: 100%;
}

.profiel-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.profiel-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.profiel-lightbox__prev {
    left: 1.5rem;
}

.profiel-lightbox__next {
    right: 1.5rem;
}

.profiel-lightbox__nav svg {
    width: 24px;
    height: 24px;
}

.profiel-lightbox__image-wrap {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profiel-lightbox__image-wrap img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .profiel-hero {
        min-height: 55vh;
    }

    .profiel-hero__intro h1 {
        font-size: 2.4rem;
    }

    .profiel-gallery__mosaic {
        grid-template-columns: repeat(2, 1fr);
    }

    .profiel-gallery__item--wide {
        grid-column: span 2;
    }

    .profiel-gallery__item--full {
        grid-column: 1 / -1;
        aspect-ratio: 2 / 1;
    }

    .profiel-music__tracks {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .profiel-hero {
        min-height: 50vh;
    }

    .profiel-hero__content {
        padding: 5rem 5% 3rem;
    }

    .profiel-hero__intro h1 {
        font-size: 2rem;
    }

    .profiel-voice__card {
        grid-template-columns: 1fr;
    }

    .profiel-voice__visual {
        height: 200px;
    }

    .profiel-voice__body {
        padding: 1.5rem;
    }

    .profiel-gallery {
        padding: 3rem 4%;
    }

    .profiel-gallery__mosaic {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .profiel-gallery__item--wide {
        grid-column: span 2;
    }

    .profiel-gallery__caption {
        opacity: 1;
        padding: 1.5rem 1rem 0.75rem;
    }

    .profiel-music__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .profiel-quotes__grid {
        grid-template-columns: 1fr;
    }

    .profiel-lightbox__prev {
        left: 0.75rem;
    }

    .profiel-lightbox__next {
        right: 0.75rem;
    }
}

@media (max-width: 480px) {
    .profiel-hero {
        min-height: 45vh;
    }

    .profiel-hero__intro h1 {
        font-size: 1.7rem;
    }

    .profiel-hero__subtitle {
        font-size: 1rem;
    }

    .profiel-voice__title {
        font-size: 1.3rem;
    }

    .profiel-music__tracks {
        grid-template-columns: 1fr;
    }

    .profiel-gallery__mosaic {
        grid-template-columns: 1fr;
    }

    .profiel-gallery__item--wide {
        grid-column: span 1;
        aspect-ratio: 4 / 3;
    }

    .profiel-gallery__item--full {
        grid-column: span 1;
        aspect-ratio: 4 / 3;
    }

    .profiel-gallery__item {
        aspect-ratio: 4 / 3;
    }
}
