/* ========================================
   ПРОФИЛЬ - Стили согласно стайл-гайду
   ======================================== */

.profile-card {
    background: var(--color-bg-primary, #1A1A1A);
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin-bottom: 0;
    min-height: calc(100vh - 120px);
}

/* Шапка профиля */
.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 16px;
    border-bottom: 1px solid var(--color-border-primary, #3A3A3A);
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 4px;
    background: var(--color-bg-tertiary, #2E2E2E);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text-primary, #E0E0E0);
    text-transform: uppercase;
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: calc(100% - 80px);
}

.profile-name-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.profile-info h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-primary, #E0E0E0);
    line-height: 1.2;
    word-break: break-word;
}

.profile-edit-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--color-text-secondary, #A0A0A0);
    transition: color 0.2s;
}

.profile-edit-btn:hover {
    color: var(--color-accent-primary, #CC0000);
}

.profile-edit-btn svg {
    width: 16px;
    height: 16px;
}

.profile-username {
    font-size: 14px;
    color: var(--color-text-secondary, #A0A0A0);
    margin-bottom: 8px;
    font-weight: 400;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.role-badge svg {
    width: 16px;
    height: 16px;
}

.role-badge.role-developer {
    background: rgba(204, 0, 0, 0.2);
    color: #FF0000;
    border: 1px solid #CC0000;
}

.role-badge.role-admin {
    background: rgba(245, 124, 0, 0.2);
    color: #F57C00;
    border: 1px solid #F57C00;
}

.role-badge.role-worker {
    background: rgba(46, 125, 50, 0.2);
    color: #2E7D32;
    border: 1px solid #2E7D32;
}

.role-badge.role-pending {
    background: rgba(117, 117, 117, 0.2);
    color: #757575;
    border: 1px solid #757575;
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--color-border-primary, #3A3A3A);
    border: 1px solid var(--color-border-primary, #3A3A3A);
    border-left: none;
    border-right: none;
}

.stat-item {
    background: var(--color-bg-secondary, #242424);
    padding: 16px;
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: var(--color-text-secondary, #A0A0A0);
    margin-bottom: 8px;
    font-weight: 400;
}

.stat-value {
    font-size: 28px;
    color: var(--color-text-primary, #E0E0E0);
    font-weight: 700;
    line-height: 1.2;
}

.stat-value.positive {
    color: var(--color-status-verified, #2E7D32);
}

.stat-value.negative {
    color: var(--color-status-duplicate, #CC0000);
}

.stat-value.warning {
    color: var(--color-status-suspicious, #F57C00);
}

/* Секции профиля */
.profile-section {
    padding: 24px;
    border-bottom: 1px solid var(--color-border-primary, #3A3A3A);
}

.profile-section:last-child {
    border-bottom: none;
}

.profile-section h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary, #E0E0E0);
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-section h3 svg {
    width: 20px;
    height: 20px;
}

/* Кнопки профиля */
.profile-btn {
    width: 100%;
    background: transparent;
    color: var(--color-text-primary, #E0E0E0);
    border: 1px solid var(--color-border-primary, #3A3A3A);
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.profile-btn:last-child {
    margin-bottom: 0;
}

.profile-btn:hover {
    border-color: var(--color-accent-primary, #CC0000);
    color: var(--color-accent-primary, #CC0000);
    background: rgba(204, 0, 0, 0.05);
}

.profile-btn:active {
    background: rgba(204, 0, 0, 0.1);
}

.profile-btn--primary {
    background: var(--color-accent-primary, #CC0000);
    color: #FFFFFF;
    border-color: var(--color-accent-primary, #CC0000);
}

.profile-btn--primary:hover {
    background: var(--color-accent-hover, #FF0000);
    border-color: var(--color-accent-hover, #FF0000);
    color: #FFFFFF;
}

/* Детали профиля */
.profile-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border-secondary, #2E2E2E);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row span:first-child {
    font-size: 14px;
    color: var(--color-text-secondary, #A0A0A0);
}

.detail-row span:last-child {
    font-size: 14px;
    color: var(--color-text-primary, #E0E0E0);
    font-weight: 500;
}

/* Экран ожидания одобрения */
.pending-approval {
    text-align: center;
    padding: 48px 24px;
}

.pending-approval-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    opacity: 0.6;
}

.pending-approval h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-primary, #E0E0E0);
    margin: 0 0 16px 0;
}

.pending-approval p {
    font-size: 16px;
    color: var(--color-text-secondary, #A0A0A0);
    line-height: 1.5;
    margin: 0;
}
