/* styles/edit-profile.css - стили для модалки редактирования профиля */

.edit-modal {
    max-width: 400px !important;
    margin: 30px auto !important;
}

.edit-form {
    padding: 0 15px;
}

/* Аватар */
.avatar-section {
    text-align: center;
    margin-bottom: 25px;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fe2b0d, #eea21e);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: black;
    border: 3px solid #eea21e;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-bottom: 10px;
    overflow: hidden;
}

.avatar-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(238, 162, 30, 0.5);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-family: 'aaaiight', sans-serif;
    margin-top: 5px;
}

/* Выбор аватара */
.avatar-selector {
    margin: 20px 0;
    text-align: center;
}

.selector-title {
    color: #eea21e;
    font-family: 'BebasNeue-Regular', sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
}

.avatar-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: black;
    cursor: pointer;
    border: 2px solid rgba(238, 162, 30, 0.3);
    transition: all 0.3s ease;
    margin: 0 auto;
    overflow: hidden;
}

.avatar-option:hover {
    transform: scale(1.1);
    border-color: #eea21e;
    box-shadow: 0 0 15px rgba(238, 162, 30, 0.5);
}

.avatar-option.selected {
    border: 3px solid #eea21e;
    box-shadow: 0 0 20px rgba(238, 162, 30, 0.8);
    transform: scale(1.05);
}

.avatar-option.letter-option {
    background: linear-gradient(135deg, #fe2b0d, #eea21e);
}

.avatar-option.image-option {
    background: transparent;
}

.avatar-option.image-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Компактные поля ввода */
.form-group.compact {
    margin-bottom: 15px;
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #eea21e;
    font-size: 16px;
    z-index: 2;
}

.rap-input.compact-input {
    padding: 12px 15px 12px 45px !important;
    font-size: 14px !important;
    height: 45px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(238, 162, 30, 0.2) !important;
}

.rap-input.compact-input:focus {
    border-color: #eea21e !important;
    background: rgba(238, 162, 30, 0.05) !important;
    box-shadow: 0 0 15px rgba(238, 162, 30, 0.1) !important;
}

.rap-input.compact-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

/* Кнопка сохранения */
.rap-btn.save-btn.compact {
    padding: 14px !important;
    font-size: 16px !important;
    min-height: 50px !important;
    margin-top: 20px !important;
    background: linear-gradient(135deg, #fe2b0d 0%, #eea21e 100%) !important;
    border: none !important;
}

.rap-btn.save-btn.compact .btn-text {
    font-size: 16px !important;
    letter-spacing: 2px !important;
}

/* Стили для сообщения об успехе */
#editProfileSuccess,
.success-message {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    border: 2px solid #22c55e;
    border-radius: 8px;
    color: #22c55e;
    font-family: 'BebasNeue-Regular', sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
    padding: 12px 20px;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    animation: fadeInOut 3s ease forwards;
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.2);
    position: relative;
}

#editProfileSuccess::before,
.success-message::before {
    content: '✓';
    display: inline-block;
    margin-right: 10px;
    font-size: 18px;
    font-weight: bold;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    10% {
        opacity: 1;
        transform: translateY(0);
    }
    90% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
        display: none;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .edit-modal {
        width: 95% !important;
        max-width: 350px !important;
        margin: 20px auto !important;
    }
    
    .avatar-preview {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .avatar-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 280px;
    }
    
    .avatar-option {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .rap-input.compact-input {
        padding: 10px 15px 10px 40px !important;
        font-size: 13px !important;
        height: 42px !important;
    }
    
    .input-icon {
        font-size: 14px;
        left: 12px;
    }
}

@media (max-width: 480px) {
    .edit-modal {
        max-width: 320px !important;
        margin: 15px auto !important;
    }
    
    .avatar-preview {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .avatar-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        max-width: 250px;
    }
    
    .avatar-option {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .rap-input.compact-input {
        padding: 9px 12px 9px 38px !important;
        font-size: 12px !important;
        height: 40px !important;
    }
    
    .rap-btn.save-btn.compact {
        padding: 12px !important;
        font-size: 14px !important;
        min-height: 45px !important;
    }
}