/*
========================================
File: artist-page.css
========================================
*/

/* --- Seção Hero do Artista --- */
.artist-hero {
    position: relative;
    height: 320px;
    /* Altura padrão para mobile */
    display: flex;
    align-items: flex-end;
    /* Alinha conteúdo na base */
    background-size: cover;
    background-position: center 20%;
    /* Foca um pouco mais para cima da imagem */
    padding: var(--spacing-6);
}

.artist-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 1) 5%, rgba(10, 10, 10, 0.7) 40%, rgba(10, 10, 10, 0.2) 70%, transparent 100%);
}

.artist-hero__content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1280px;
    /* Alinha com o container */
    margin: 0 auto;
}

.artist-hero__tag {
    font-size: var(--fs-xs);
    background-color: rgba(29, 185, 84, 0.2);
    color: var(--color-primary);
    padding: 3px 10px;
    border-radius: var(--border-radius-full);
    font-weight: 500;
    margin-bottom: var(--spacing-2);
    display: inline-block;
}

.artist-hero__title {
    font-size: var(--fs-5xl);
    font-weight: 900;
    color: var(--color-text-primary);
    line-height: 1.1;
    margin-bottom: var(--spacing-2);
}

.artist-hero__bio {
    max-width: 600px;
    margin-bottom: var(--spacing-6);
    color: var(--color-text-secondary);
}

.artist-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-3);
    align-items: center;
}

.artist-hero__actions .btn {
    padding: 10px 24px;
}

.artist-hero__actions .btn--secondary {
    background-color: rgba(36, 36, 36, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
}

.artist-hero__actions .btn--secondary:hover {
    background-color: var(--color-bg-elevated);
}

@media (min-width: 768px) {

    /* md */
    .artist-hero {
        height: 380px;
    }

    .artist-hero__title {
        font-size: 4.5rem;
        /* ~72px */
    }
}

/* --- Layout da Página do Artista --- */
.artist-page-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-10);
}

.artist-page-content {
    flex-grow: 1;
}

.artist-page-sidebar {
    width: 100%;
}

@media (min-width: 1024px) {

    /* lg */
    .artist-page-wrapper {
        flex-direction: row;
        align-items: flex-start;
        /* Alinha o topo dos containers */
        gap: var(--spacing-8);
    }

    .artist-page-sidebar {
        width: 320px;
        /* Largura fixa para a sidebar */
        flex-shrink: 0;
        position: sticky;
        top: 6rem;
        /* Header height + spacing */
    }
}

/* --- Lista de Músicas --- */
.song-list__item {
    display: grid;
    grid-template-columns: 2rem 1fr auto;
    gap: var(--spacing-4);
    align-items: center;
    padding: var(--spacing-2);
    border-radius: var(--border-radius-md);
    transition: var(--transition-fast);
}

.song-list__item:hover {
    background-color: var(--color-bg-elevated);
}

.song-list__item-rank {
    font-size: var(--fs-sm);
    color: var(--color-text-tertiary);
    text-align: center;
}

.song-list__item-details {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    overflow: hidden;
}

.song-list__item-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    flex-shrink: 0;
}

.song-list__item-info {
    overflow: hidden;
}

.song-list__item-title {
    font-weight: 500;
    color: var(--color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-list__item-album {
    font-size: var(--fs-xs);
    color: var(--color-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-list__item-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
}

.song-list__item-actions .analyzed-icon {
    color: var(--color-primary);
    font-size: var(--fs-xl);
}

.song-list__item-duration {
    font-size: var(--fs-sm);
    color: var(--color-text-tertiary);
    display: none;
    /* Escondido em mobile */
}

@media (min-width: 640px) {

    /* sm */
    .song-list__item-duration {
        display: block;
    }
}

/* --- Sobre o Artista --- */
.about-artist-section {
    line-height: 1.8;
}

.about-artist-section p {
    margin-bottom: var(--spacing-4);
}

/* --- Sidebar do Artista --- */
.artist-sidebar-section {
    background-color: var(--color-bg-content);
    padding: var(--spacing-6);
    border-radius: var(--border-radius-lg);
}

.artist-sidebar-section__title {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-4);
}

.related-artist-list__item {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-2);
    border-radius: var(--border-radius-md);
    transition: var(--transition-fast);
}

.related-artist-list__item:hover {
    background-color: var(--color-bg-elevated);
}

.related-artist-list__image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.related-artist-list__name {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--color-text-primary);
}

.bio-section p {
    font-size: var(--fs-sm);
}

.bio-section strong {
    color: #fff;
    font-size: var(--fs-sm);
}

.bio-section em {
    color: var(--color-primary);
    font-size: var(--fs-sm) !important;
}