/**
 * Artist Info - Inline expand for artist details
 * Pattern matches applari-stat accordion mechanic
 */

@media only screen and (min-width: 320px) {
    
    /* ---- Container ---- */
    /* z-index 3: above the cover block's content layer (.cover-content is 2
       and .cover makes no stacking context of its own), below the header's
       sub-menus and the sticky nav. */
    .artist-container {
        position: absolute;
        top: 120px;
        left: 5%;
        font-size: 18px;
        z-index: 3;
        max-width: 90%;
    }

    /* ---- Visible area ---- */
    .artist-visible {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .artist-visible .marker-text {
        margin: 0;
    }

    /* ---- Toggle button ---- */
    .artist-toggle {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        font-weight: 700;
        color: var(--link-clr, #16332C);
        user-select: none;
        align-self: flex-start;
        font-size:16px;
        margin-top:-20px;
    }

    .artist-toggle:hover {
        opacity: 0.8;
    }


    /* ---- Panel (accordion mechanic) ---- */
    .artist-panel {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.45s ease;
    }

    .artist-container.is-open .artist-panel {
        grid-template-rows: 1fr;
    }

    .artist-panel-inner {
        overflow: hidden;
    }

    /* ---- Panel content ---- */
    .artist-content {
        position: relative;
        margin-top: 20px;
        padding: 24px;
        background: var(--body-bg-clr, #fff);
        border-radius: 8px;
        box-shadow: var(--box-shadow, 0 8px 20px rgba(0,0,0,0.4));
    }

    /* ---- Close button ---- */
    .artist-close {
        position: absolute;
        top: 16px;
        right: 16px;
        width: 32px;
        height: 32px;
        border: none;
        background: transparent;
        font-size: 32px;
        line-height: 1;
        color: var(--link-clr, #16332C);
        cursor: pointer;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.2s ease;
        z-index: 10;
    }

    .artist-close:hover {
        opacity: 0.6;
    }

    .artist-close:focus {
        outline: 2px solid var(--link-clr, #16332C);
        outline-offset: 2px;
    }

    .artist-content img {
        width: 100%;
        height: auto;
        border-radius: 4px;
        margin-bottom: 16px;
        object-fit: contain;
        max-height:200px;
    }

    .artist-content h3 {
        margin: 0 0 12px;
        font-size: 14px;
        font-weight: 700;
        color: var(--heading-clr, #2b2b28);
    }

    .artist-content > div {
        margin-bottom: 16px;
    }

    .artist-content > div:last-child {
        margin-bottom: 0;
    }

    .artist-content-text {
        font-size: 14px;
        line-height: 1.7;
        color: var(--body-txt-clr, rgba(43, 43, 40, 0.85));
    }
    .artist-content p {
        margin: 0 0 12px;
        font-size: 11px;
        line-height: 1.7;
        color: var(--body-txt-clr, rgba(43, 43, 40, 0.85));
    }

    .artist-content p:last-child {
        margin-bottom: 0;
    }
    .artist-content-text {
        padding-bottom: 16px;
    }
    /* ---- General info section ---- */
    .artist-general-info {
        padding-top: 16px;
        border-top: 1px solid rgba(22, 51, 44, 0.14);
        font-size: 14px;
        line-height: 1.6;
        color: rgba(43, 43, 40, 0.7);
    }
}

@media only screen and (min-width: 768px) {
    .artist-container {
        top: 120px;
        max-width: 420px;
    }

    .artist-content {
        padding: 32px;
    }

    .artist-content h3 {
    }

    .artist-content p {
    }
}

@media only screen and (min-width: 1280px) {
    .artist-container {
        left: calc(calc(100vw - 1280px) / 2);
        font-size: 24px;
    }

    .artist-content {
        padding: 32px 20px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }
    .artist-content img {
        width: 40%;
    }
    .artist-content .artist-info {
        width: 57%;
    }
    .artist-general-info {
       width:100%;
    }
    .artist-close {
        top:0px;
        font-size:18px;
    }
}
