/* ========================================
   PROFILE STYLES - Стили для профиля пользователя
   ======================================== */

/* ===== ПРОФИЛЬНАЯ СЕТКА ===== */
.profile-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px 0;
}

.profile-row {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

/* ===== ПРОФИЛЬНЫЕ БЛОКИ ===== */
.profile-block {
    background: rgba(25, 25, 35, 0.95);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    user-select: none;
}

.profile-block-large {
    width: 100%;
    min-height: 70px;
    padding: 12px;
}

.profile-block-small {
    flex: 1;
    min-height: 65px;
    padding: 10px;
}

.profile-block:hover {
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.08) 0%, 
        rgba(0, 128, 255, 0.05) 50%, 
        rgba(0, 200, 255, 0.06) 100%);
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 
        0 4px 12px rgba(0, 255, 255, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.3);
}

.profile-block:active {
    transform: translateY(0);
}

/* ===== ИНФОРМАЦИЯ ПРОФИЛЯ ===== */
.profile-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    z-index: 2;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

/* ===== АВАТАР И ИКОНКИ ===== */
.profile-avatar {
    font-size: 32px;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.profile-icon {
    font-size: 24px;
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
}

/* ===== ТЕКСТОВЫЕ ЭЛЕМЕНТЫ ===== */
.profile-username {
    font-size: 18px;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 2px;
    word-break: break-word;
    hyphens: auto;
}

.profile-level {
    font-size: 14px;
    color: #00ffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
    background: linear-gradient(45deg, #00ffff, #0080ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.profile-value {
    font-size: 16px;
    color: #00ffff;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
    background: linear-gradient(45deg, #00ffff, #0080ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-percentage {
    font-size: 14px;
    color: #00ffff;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
    background: linear-gradient(45deg, #00ffff, #0080ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== ПРОГРЕСС УРОВНЯ ===== */
.profile-progress {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ffff, #0080ff);
    border-radius: 4px;
    transition: width 0.5s ease;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.progress-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-weight: 500;
}

/* ===== ДЕЙСТВИЯ ПРОФИЛЯ ===== */
.profile-actions {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #00ffff, #0080ff);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 8px rgba(0, 255, 255, 0.2);
}

.profile-action-btn:hover {
    background: linear-gradient(135deg, #00cccc, #0066cc);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.3);
}

.profile-action-btn:active {
    transform: translateY(0);
}

.profile-action-btn i {
    font-size: 14px;
}

/* ===== ЭФФЕКТЫ ===== */
/* Убрали эффекты для производительности */
.profile-block::before {
    display: none;
}

.profile-block:hover::before {
    display: none;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 768px) {
    .profile-block-large {
        min-height: 65px;
        padding: 12px;
    }
    
    .profile-block-small {
        min-height: 60px;
        padding: 10px;
    }
    
    .profile-username {
        font-size: 16px;
    }
    
    .profile-level {
        font-size: 12px;
    }
    
    .profile-value {
        font-size: 14px;
    }
    
    .profile-icon {
        font-size: 20px;
        min-width: 28px;
    }
    
    .profile-avatar {
        font-size: 28px;
        min-width: 36px;
    }
}

@media (max-width: 480px) {
    .profile-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .profile-block-small {
        width: 100%;
    }
    
    .profile-block-large {
        min-height: 60px;
        padding: 10px;
    }
    
    .profile-block-small {
        min-height: 55px;
        padding: 8px;
    }
    
    .profile-username {
        font-size: 14px;
    }
    
    .profile-level {
        font-size: 11px;
    }
    
    .profile-value {
        font-size: 13px;
    }
    
    .profile-icon {
        font-size: 18px;
        min-width: 24px;
    }
    
    .profile-avatar {
        font-size: 24px;
        min-width: 32px;
    }
    
    .profile-action-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* ===== МОБИЛЬНЫЕ ОПТИМИЗАЦИИ ===== */
@media (max-width: 768px) {
    /* Отключаем тяжелые эффекты на мобильных */
    .profile-item {
        transition: none !important;
        transform: none !important;
    }
    
    .profile-item:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    /* Упрощаем градиенты */
    .profile-list {
        background: rgba(0, 255, 255, 0.05);
    }
    
    /* Убираем сложные анимации */
    .profile-button {
        transition: none !important;
    }
    
    /* Упрощаем модальные окна */
    .profile-modal-overlay {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(0, 0, 0, 0.9);
    }
    
    /* Отключаем hover эффекты */
    .profile-item:hover,
    .profile-button:hover,
    .profile-modal-close:hover {
        transform: none !important;
        background: none !important;
    }
}

/* Отключение анимаций для слабых устройств */
@media (max-width: 480px) {
    .profile-item,
    .profile-button,
    .profile-modal-overlay {
        animation: none !important;
        transition: none !important;
    }
}