/* ==========================================================================
   SoundBPM - Perfil do Usuário, Banner, Avatar e Estatísticas
   ========================================================================== */
    #profile-page {
        box-sizing: border-box;
        width: 100% !important;
        padding: 10px;
    }



/* ===== PERFIL: estatísticas, atividade e ações ===== */
.stat-card { background-color: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 6px; padding: 1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.stat-value { font-size: 1.5rem; font-weight: 800; color: var(--accent-gold); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }
.stat-fav { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 1rem; border-color: var(--accent-gold); }
.stat-fav img { width: 64px; height: 64px; border-radius: 4px; object-fit: cover; }
.dist-row { display: flex; gap: 6px; align-items: flex-end; height: 100px; margin-top: 1rem; }
.dist-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; font-size: 0.65rem; color: var(--text-muted); }
.dist-bar { width: 100%; min-height: 2px; background-color: var(--accent-gold); border-radius: 3px 3px 0 0; }
.activity-item { background-color: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 6px; padding: 0.8rem 1rem; display: flex; align-items: center; gap: 0.8rem; }
.activity-body { flex: 1; min-width: 0; font-size: 0.9rem; }
.activity-date { display: block; font-size: 0.75rem; color: var(--text-muted); }
.activity-share { background: transparent; border: 1px solid var(--border-subtle); color: var(--text-muted); border-radius: 4px; cursor: pointer; padding: 0.3rem 0.6rem; transition: var(--transition-base); }
.activity-share:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
@media (max-width: 768px) { .stat-fav { flex-direction: row; text-align: left; } }

/* =====================================================================
   v0.10 — SMOOTH: magnético, cards flutuantes, scroll reveal, tema claro e painéis


/* ===== BANNER DO PERFIL, AVATAR & DIMENSIONAMENTO ===== */

.profile-hero-section {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: -4.5rem; /* Ajuste para esconder o topo do banner embaixo do menu */
    margin-bottom: 2.5rem;
    min-height: 400px;
    display: flex;
    align-items: flex-end; 
    justify-content: center;
    border-bottom: 1px solid var(--border-subtle); 
}

.profile-banner-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(135deg, rgba(30, 32, 44, 0.95) 0%, rgba(18, 20, 28, 0.98) 100%);
    border: none;
    border-radius: 0; 
    overflow: hidden;
}

.profile-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: linear-gradient(to top, rgba(20, 24, 28, 0.9) 0%, rgba(20, 24, 28, 0.6) 40%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.profile-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 50%;
    display: none;
    user-select: none;
    -webkit-user-drag: none;
    z-index: 1;
    position: relative;
    transition: object-position 0.15s ease;
}

.profile-banner-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(223, 177, 91, 0.08) 0%, transparent 70%);
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 3;
}

.profile-banner-placeholder:hover {
    background: radial-gradient(circle at center, rgba(223, 177, 91, 0.15) 0%, transparent 75%);
    color: var(--text-main);
}

.profile-banner-actions {
    position: absolute;
    top: 36px; /* Desceu 16px para não bater com o menu fixo lá em cima */
    right: max(20px, calc(50% - 580px)); 
    display: flex;
    gap: 0.5rem;
    z-index: 10;
    opacity: 0; 
    pointer-events: none; 
    transition: all 0.3s ease;
}

.profile-hero-section:hover .profile-banner-actions,
.profile-hero-section:focus-within .profile-banner-actions {
    opacity: 1;
    pointer-events: auto;
}

.profile-banner-actions button,
.profile-banner-actions label {
    background: rgba(14, 15, 22, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--text-main);
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.profile-banner-actions button:hover,
.profile-banner-actions label:hover {
    background: rgba(223, 177, 91, 0.9);
    border-color: var(--accent-gold);
    color: #000;
    transform: translateY(-2px);
}

.profile-user-bar {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem 2rem 2rem;
}

.profile-avatar-wrap {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.15); 
    background-color: var(--bg-elevated, #2a2a3e);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Silhueta padrão quando não há foto */
.profile-avatar-wrap::before {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 38%, var(--text-muted, #888) 28%, transparent 29%),
                radial-gradient(ellipse 60% 40% at 50% 100%, var(--text-muted, #888) 55%, transparent 56%);
    opacity: 0.35;
    pointer-events: none;
}

.profile-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

/* Quando tem foto, esconde a silhueta */
.profile-avatar-wrap.tem-foto::before {
    display: none;
}

.avatar-hover-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
    color: #fff;
}

.profile-avatar-wrap:hover .avatar-hover-overlay {
    opacity: 1;
}


.banner-controls-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.8rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
}

.banner-control-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.banner-control-item label {
    min-width: 120px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
    font-weight: 600;
}

.banner-control-item span.val-display {
    min-width: 48px;
    text-align: right;
    font-family: monospace;
    color: var(--accent-gold);
}
/* ===== POSICIONAMENTO DO BOTÃO EDITAR PERFIL ===== */
.profile-user-bar > button,
.profile-user-bar > a,
#btn-edit-profile,
#edit-profile-btn,
.btn-edit-profile {
    margin-left: auto !important; /* Empurra o botão totalmente para a direita */
    align-self: flex-end !important; /* Força o botão a descer, ignorando o estilo do HTML */
    margin-bottom: 0.5rem !important; /* Dá um pequeno respiro em relação à linha cinzenta */
    transform: none !important; /* Remove qualquer desvio anterior */
}