/*
 * De ce exista:
 * Acest fisier contine ajustari specifice ecranului Profile.
 *
 * Responsabilitate:
 * Pastreaza cardul de identitate si formularul minimal curate in Lot 1.
 *
 * Ce NU face:
 * Nu stilizeaza alte zone ale shell-ului.
 *
 * Depinde de:
 * tpl-screen-profile si CSS-ul shared/forms/buttons.
 */

.v2-screen--profile {
    display: grid;
    gap: 14px;
}

.v2-screen--profile .v2-screen-head {
    gap: 8px;
}

.v2-screen--profile .v2-profile-card {
    display: grid;
    gap: 14px;
}

.v2-profile-avatar-card {
    display: grid;
    gap: 14px;
}

.v2-profile-avatar-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.v2-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(209, 213, 219, 0.85);
    background: #f3f4f6;
}

.v2-profile-avatar.is-fallback {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.14);
    color: var(--z-green);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.v2-profile-avatar-copy {
    display: grid;
    gap: 6px;
}

.v2-profile-avatar-copy strong {
    font-size: 1rem;
}

.v2-profile-avatar-copy p {
    margin: 0;
    color: #4b5563;
    line-height: 1.55;
}

.v2-profile-identity-card {
    background: linear-gradient(180deg, rgba(22, 163, 74, 0.06), rgba(255, 255, 255, 0.98));
}

.v2-profile-identity-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.v2-profile-identity-pill {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #f9fafb;
    border: 1px solid rgba(229, 231, 235, 0.95);
}

.v2-profile-identity-pill.is-mode {
    background: rgba(22, 163, 74, 0.08);
    border-color: rgba(22, 163, 74, 0.2);
}

.v2-profile-identity-key {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
}

.v2-profile-helper-card.is-warning {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.08), rgba(255, 255, 255, 0.98));
}

.v2-profile-worker-card {
    background: linear-gradient(180deg, rgba(22, 163, 74, 0.08), rgba(255, 255, 255, 0.98));
}

.v2-profile-worker-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.v2-profile-worker-stat {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(229, 231, 235, 0.95);
}

.v2-profile-worker-stat strong {
    font-size: 1.05rem;
    color: #111827;
}

.v2-profile-worker-stat-label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #6b7280;
}

.v2-profile-worker-headline {
    margin: 0;
    color: #374151;
    line-height: 1.55;
}

.v2-profile-notification-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.v2-profile-notification-summary-item {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 16px;
    background: #f9fafb;
    border: 1px solid rgba(229, 231, 235, 0.95);
}

.v2-profile-notification-summary-item strong {
    font-size: 1rem;
    color: #111827;
}

.v2-profile-notification-summary-label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #6b7280;
}

.v2-profile-notification-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(229, 231, 235, 0.95);
    background: #ffffff;
}

.v2-profile-notification-card.is-unread {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.08), rgba(255, 255, 255, 0.98));
}

.v2-profile-notification-card.is-read,
.v2-profile-notification-card.is-empty {
    background: #f9fafb;
}

.v2-profile-notification-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.55;
}

.v2-profile-notification-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.v2-profile-context-pill {
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.1);
    color: #15803d;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
}

.v2-profile-notification-meta {
    font-size: 0.9rem;
}

@media (max-width: 420px) {
    .v2-profile-avatar-block {
        align-items: flex-start;
    }

    .v2-profile-identity-meta,
    .v2-profile-worker-stats,
    .v2-profile-notification-summary {
        grid-template-columns: 1fr;
    }

    .v2-profile-notification-top {
        flex-direction: column;
        align-items: flex-start;
    }
}
