/* ===== Artist Page (Music-First Layout) ===== */

/* -- Compact header: avatar + name + edit link -- */
.artist-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    margin-bottom: 0.5rem;
}

.artist-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #518BA1;
}

.artist-name {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.artist-edit-link {
    margin-left: auto;
    font-size: 0.85rem;
    color: #518BA1;
    text-decoration: none;
}
.artist-edit-link:hover {
    text-decoration: underline;
}

/* -- Collapsible detail sections -- */
.artist-details {
    margin-top: 2rem;
    max-width: 900px;
}

.artist-detail-section {
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.artist-detail-section summary {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-weight: 600;
    color: #518BA1;
    list-style: none;
}
.artist-detail-section summary::-webkit-details-marker {
    display: none;
}
.artist-detail-section summary::before {
    content: '\25B6';
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 0.7em;
    transition: transform 0.2s;
}
.artist-detail-section[open] summary::before {
    transform: rotate(90deg);
}

.artist-detail-section summary:hover {
    background: rgba(81, 139, 161, 0.06);
}

.artist-detail-body {
    padding: 0 1rem 0.75rem;
}

.artist-impact {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* -- Role tags -- */
.artist-role-tag {
    display: inline-block;
    background-color: #518BA1;
    color: white !important;
    border-radius: 25px;
    padding: 6px 16px;
    margin: 3px 4px 3px 0;
    font-size: 0.9em;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.artist-role-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

/* -- Track art thumbnails in artist playlist -- */
.playlistTrackArt img {
    width: 110px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

/* -- "About" scroll link -- */
.artist-about-link {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    color: #518BA1;
    border: 1px solid #518BA1;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.artist-about-link:hover {
    background: #518BA1;
    color: #fff;
    text-decoration: none;
}

/* -- Elevate button -- */
.artist-elevate {
    margin: 1.5rem 0;
    text-align: center;
}

#artistPage .subscribeButton {
    background: #E77D42;
    color: white;
    font-weight: bold;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}
#artistPage .subscribeButton:hover {
    background: #FFA000;
    transform: scale(1.05);
}

#artistPage .elevater {
    text-align: center;
    padding: 0.75rem;
    font-size: 0.95rem;
}

/* -- Tag cloud -- */
.tag-cloud {
    line-height: 1.8;
    padding: 0.5rem 0;
}
.tag-cloud .artist-tag {
    display: inline-block;
    padding: 2px 6px;
    margin: 2px;
    cursor: pointer;
    color: #518BA1;
    border-radius: 3px;
    transition: background 0.15s, color 0.15s;
}
.tag-cloud .artist-tag:hover {
    background: #518BA1;
    color: #fff;
}
.tag-cloud .artist-tag.boosted {
    color: #E77D42;
    font-weight: bold;
}
.tag-cloud .artist-tag.boosted:hover {
    background: #E77D42;
    color: #fff;
}
.tag-cloud .hidden-tag {
    display: none;
}
#toggle-tags {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 4px 12px;
    font-size: 0.85rem;
    background: #E77D42;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
#toggle-tags:hover {
    background: #FFA000;
}

/* -- Light mode overrides -- */
body.light-mode .artist-detail-section {
    border-color: rgba(0, 0, 0, 0.1);
}
body.light-mode .artist-detail-section summary:hover {
    background: rgba(81, 139, 161, 0.04);
}
body.light-mode .tag-cloud .artist-tag {
    color: #3a6f82;
}

/* -- Mobile -- */
@media (max-width: 768px) {
    .artist-header {
        flex-wrap: wrap;
    }
    .artist-avatar {
        width: 48px;
        height: 48px;
    }
    .artist-name {
        font-size: 1.25rem;
    }
    .artist-edit-link {
        width: 100%;
        margin-left: 0;
    }
}
