/* Profile page & Settings — Square avatar, glass cards */

/* ═══════════════════════════════════════════════════════════
   CLICKABLE PROFILE LINK (sidebar & drawer)
   ═══════════════════════════════════════════════════════════ */

.profile-link {
    display: flex;
    gap: 15px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.profile-link:hover .name {
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
   SQUARE PFP (replaces circular style globally)
   ═══════════════════════════════════════════════════════════ */

.profile .pfp {
    border-radius: 8px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile .pfp img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ═══════════════════════════════════════════════════════════
   PROFILE HEADER CARD (used on /profile and /profile/settings)
   ═══════════════════════════════════════════════════════════ */

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-header__pfp {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: var(--white);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.profile-header__pfp img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-header__info {
    min-width: 0;
    flex: 1;
}

.profile-header__name {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-header__sub {
    color: var(--text-muted);
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════════════
   SETTINGS CARDS
   ═══════════════════════════════════════════════════════════ */

.settings-card {
    margin: 0 auto 1.5rem;
    padding: 1.75rem 1.5rem;
}

.settings-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-card__title i {
    color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════
   PFP UPLOAD PREVIEW
   ═══════════════════════════════════════════════════════════ */

.pfp-upload {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.pfp-upload__preview {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: var(--white);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid var(--search-border);
    transition: border-color 0.15s ease;
}

.pfp-upload__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pfp-upload__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pfp-upload__input {
    display: none;
}

.pfp-upload__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    background-color: var(--surface-2);
    border: 1px solid var(--search-border);
    color: var(--text);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.pfp-upload__btn:hover {
    border-color: var(--accent);
    background-color: var(--surface-3);
}

.pfp-upload__hint {
    font-size: 0.78rem;
    color: var(--text-faint);
}

/* ═══════════════════════════════════════════════════════════
   PLACEHOLDER SECTIONS (future stats / lists / folders)
   ═══════════════════════════════════════════════════════════ */

.profile-placeholder {
    max-width: 520px;
    margin: 0 auto 1.5rem;
    padding: 2rem 1.5rem;
    background-color: rgba(22, 34, 51, 0.5);
    backdrop-filter: blur(8px);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.profile-placeholder i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.profile-placeholder__badge {
    display: inline-block;
    margin-top: 0.6rem;
    margin-left: 0.35rem;
    padding: 0.22rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--accent-300);
    background-color: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.28);
    border-radius: var(--radius-pill);
}

/* SUCCESS/ERROR ALERTS → lásd: components.css (.app-alert) */

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 576px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-header a {
        margin: auto;
    }

    .profile-header__pfp {
        width: 96px;
        height: 96px;
    }

    .profile-header__info {
        text-align: center;
    }

    .pfp-upload {
        flex-direction: column;
        text-align: center;
    }

    .pfp-upload__actions {
        align-items: center;
    }
}
