/**
 * Inner Pages — Listen & Videos
 * Shared hero + layout styles for the redesigned inner pages.
 *
 * @package Cloe_Hubbard
 * @since   1.5.0
 */

/* ============================================
   INNER-PAGE HERO (shared by Listen + Videos)
   ============================================ */
.inner-hero {
    position: relative;
    min-height: 52vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    padding: 0 0 4rem;
}

.inner-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    transform: scale(1.04);
    transition: transform 8s ease-out;
}

.inner-hero.is-visible .inner-hero__bg {
    transform: scale(1);
}

/* Gradient overlay — heavy bottom fade into page background */
.inner-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(10,10,10,.35) 0%,
            rgba(10,10,10,.55) 40%,
            rgba(10,10,10,.92) 80%,
            #0a0a0a 100%
        ),
        linear-gradient(135deg,
            rgba(212,175,55,.06) 0%,
            transparent 60%
        );
    z-index: 1;
}

/* When no background image: subtle radial gold glow */
.inner-hero--no-image .inner-hero__overlay {
    background:
        radial-gradient(ellipse 900px 500px at 30% 60%, rgba(212,175,55,.07), transparent 70%),
        linear-gradient(180deg, var(--color-dark-gray) 0%, var(--color-black) 100%);
}

.inner-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 760px;
    padding: 0 2rem;
}

.inner-hero__eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--color-gold);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(12px);
    animation: innerHeroFadeUp .7s .2s ease forwards;
}

.inner-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.04em;
    line-height: 1.05;
    margin: 0 0 1rem;
    opacity: 0;
    transform: translateY(16px);
    animation: innerHeroFadeUp .7s .35s ease forwards;
}

.inner-hero__subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 300;
    color: rgba(255,255,255,.7);
    letter-spacing: 0.02em;
    line-height: 1.6;
    max-width: 540px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(12px);
    animation: innerHeroFadeUp .7s .5s ease forwards;
}

@keyframes innerHeroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Decorative bottom edge */
.inner-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, rgba(212,175,55,.2) 50%, transparent 95%);
    z-index: 3;
}


/* ============================================
   LISTEN / MUSIC PAGE
   ============================================ */

/* ── Platform buttons ── */
.listen-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 1.75rem;
    opacity: 0;
    transform: translateY(12px);
    animation: innerHeroFadeUp .7s .65s ease forwards;
}

.listen-platforms__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255,255,255,.92);
    border: 1px solid rgba(212,175,55,.3);
    background: rgba(212,175,55,.08);
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.listen-platforms__link:hover {
    transform: translateY(-2px);
    border-color: rgba(212,175,55,.6);
    background: rgba(212,175,55,.16);
    box-shadow: 0 4px 20px rgba(212,175,55,.12);
    color: #fff;
}

.listen-platforms__link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.listen-platforms__link--outline {
    border-color: rgba(255,255,255,.15);
    background: rgba(255,255,255,.04);
}
.listen-platforms__link--outline:hover {
    border-color: rgba(255,255,255,.35);
    background: rgba(255,255,255,.1);
    box-shadow: none;
}

/* ── Section dividers (eyebrow + heading pattern) ── */
.listen-section {
    padding: 5rem 0;
    position: relative;
}

.listen-section + .listen-section::before {
    content: '';
    display: block;
    width: 100%;
    max-width: 680px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.06) 20%, rgba(255,255,255,.06) 80%, transparent);
    margin: 0 auto;
    position: absolute;
    top: 0; left: 0; right: 0;
}

.listen-section__eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    margin-bottom: 0.75rem;
}

.listen-section__heading {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 0.5rem;
    letter-spacing: 0.01em;
}

.listen-section__desc {
    color: var(--color-gray-text);
    font-size: 0.95rem;
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* ── Featured embeds ── */
.listen-embeds-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 1080px;
    margin: 0 auto;
}

.listen-embed-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.025);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.listen-embed-card:hover {
    border-color: rgba(212,175,55,.25);
    box-shadow: 0 16px 48px rgba(0,0,0,.4);
}

.listen-embed-card__label {
    padding: 14px 20px;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,.7);
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.listen-embed-card__frame {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    background: rgba(0,0,0,.4);
}

.listen-embed-card__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Single embed — full width */
.listen-embeds-grid--single {
    grid-template-columns: 1fr;
    max-width: 780px;
}

/* ── Discography grid ── */
.listen-release-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.listen-release-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.025);
    text-decoration: none;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.listen-release-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212,175,55,.35);
    box-shadow: 0 20px 56px rgba(0,0,0,.45);
}

.listen-release-card__thumb {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--color-medium-gray);
}

.listen-release-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.listen-release-card:hover .listen-release-card__thumb img {
    transform: scale(1.06);
}

.listen-release-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-medium-gray), var(--color-dark-gray));
    display: flex;
    align-items: center;
    justify-content: center;
}

.listen-release-card__thumb-placeholder::after {
    content: '♪';
    font-size: 2.5rem;
    color: rgba(212,175,55,.25);
}

.listen-release-card__body {
    padding: 1rem 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.listen-release-card__title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0;
    line-height: 1.25;
}

.listen-release-card__date {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gray-text);
    letter-spacing: 0.02em;
}

.listen-release-card__cta {
    margin-top: auto;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-gold);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .2s ease, transform .2s ease;
}

.listen-release-card:hover .listen-release-card__cta {
    opacity: 1;
    transform: translateY(0);
}

/* Empty state */
.listen-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--color-gray-text);
    border: 1px dashed rgba(255,255,255,.1);
    border-radius: 12px;
}


/* ============================================
   VIDEOS PAGE
   ============================================ */

.videos-body {
    padding: 4rem 0 6rem;
}

/* ── Video count ── */
.videos-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-gray-text);
    letter-spacing: 0.04em;
    margin-bottom: 2rem;
}
.videos-count span {
    color: var(--color-gold);
}

/* ── Redesigned video grid ── */
.videos-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.75rem;
}

/* Featured / first video takes full width on larger screens */
.videos-grid-v2--has-featured .video-card-v2:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    border-radius: 16px;
}

.videos-grid-v2--has-featured .video-card-v2:first-child .video-card-v2__thumb {
    aspect-ratio: 16/9;
    border-radius: 16px 0 0 16px;
}

.videos-grid-v2--has-featured .video-card-v2:first-child .video-card-v2__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 2.25rem;
}

.videos-grid-v2--has-featured .video-card-v2:first-child .video-card-v2__title {
    font-size: 1.6rem;
}

.videos-grid-v2--has-featured .video-card-v2:first-child .video-card-v2__label {
    font-size: 0.7rem;
}

/* ── Video card ── */
.video-card-v2 {
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.06);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.video-card-v2:hover {
    transform: translateY(-5px);
    border-color: rgba(212,175,55,.3);
    box-shadow: 0 18px 50px rgba(0,0,0,.4);
}

.video-card-v2__thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--color-black);
}

.video-card-v2__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.video-card-v2:hover .video-card-v2__thumb img {
    transform: scale(1.06);
}

/* Play button */
.video-card-v2__play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(.92);
    width: 64px; height: 64px;
    background: rgba(212,175,55,.88);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
    box-shadow: 0 4px 24px rgba(0,0,0,.4);
}

.video-card-v2:hover .video-card-v2__play {
    transform: translate(-50%, -50%) scale(1);
    background: var(--color-gold);
    box-shadow: 0 0 36px rgba(212,175,55,.35);
}

.video-card-v2__play svg {
    width: 28px; height: 28px;
    fill: var(--color-black);
    margin-left: 3px;
}

/* Duration badge */
.video-card-v2__duration {
    position: absolute;
    bottom: 10px; right: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(0,0,0,.75);
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255,255,255,.85);
    letter-spacing: 0.02em;
}

.video-card-v2__body {
    padding: 1.15rem 1.25rem 1.35rem;
}

.video-card-v2__label {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.video-card-v2__title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0;
    line-height: 1.3;
}

.video-card-v2__meta {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--color-gray-text);
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
    .inner-hero {
        min-height: 42vh;
        padding-bottom: 3rem;
    }

    .listen-embeds-grid {
        grid-template-columns: 1fr;
    }

    .videos-grid-v2 {
        grid-template-columns: 1fr;
    }

    /* Featured card loses side-by-side on tablet */
    .videos-grid-v2--has-featured .video-card-v2:first-child {
        grid-template-columns: 1fr;
    }
    .videos-grid-v2--has-featured .video-card-v2:first-child .video-card-v2__thumb {
        border-radius: 14px 14px 0 0;
    }
}

@media (max-width: 640px) {
    .inner-hero {
        min-height: 38vh;
        padding-bottom: 2.5rem;
    }

    .inner-hero__title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .listen-platforms {
        gap: 8px;
    }

    .listen-platforms__link {
        padding: 9px 16px;
        font-size: 0.72rem;
    }

    .listen-release-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .listen-release-card__body {
        padding: 0.85rem;
    }

    .video-card-v2__play {
        width: 52px; height: 52px;
    }
    .video-card-v2__play svg {
        width: 22px; height: 22px;
    }

    .videos-grid-v2--has-featured .video-card-v2:first-child .video-card-v2__title {
        font-size: 1.2rem;
    }
}
