/**
 * 회원 정보 수정 폼 스타일
 *
 * 이 파일은 widgets/user/profile-form.php 에서 로드됩니다.
 */

/* ==================== 카드 헤더 ==================== */
.profile-form-header {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: #fff;
    border-bottom: none;
}

.profile-form-header h4 {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ==================== 카드 ==================== */
.profile-form-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

/* ==================== 프로필 사진 영역 ==================== */
.profile-photo-label {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.profile-photo-label:hover {
    transform: scale(1.03);
}

.profile-photo-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-width: 3px !important;
    border-color: #e9ecef !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.profile-photo-img:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.profile-photo-placeholder {
    width: 120px;
    height: 120px;
    border-width: 3px !important;
    border-color: #e9ecef !important;
    border-style: dashed !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.profile-photo-placeholder:hover {
    border-color: #4e73df !important;
    background-color: #f8f9ff !important;
}

.profile-photo-icon {
    font-size: 50px;
    color: #c5cad9 !important;
}

/* 프로필 사진 삭제 버튼 */
.profile-photo-delete-btn {
    width: 26px;
    height: 26px;
    top: -3px;
    right: -3px;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.4);
    transition: transform 0.15s ease;
}

.profile-photo-delete-btn:hover {
    transform: scale(1.1);
}

.profile-photo-delete-icon {
    font-size: 11px;
}

/* 프로필 사진 카메라 버튼 */
.profile-photo-camera-btn {
    width: 30px;
    height: 30px;
    bottom: -3px;
    right: -3px;
    cursor: pointer;
    background-color: #4e73df !important;
    border-color: #4e73df !important;
    box-shadow: 0 2px 6px rgba(78, 115, 223, 0.4);
    transition: transform 0.15s ease;
}

.profile-photo-camera-btn:hover {
    transform: scale(1.1);
}

.profile-photo-camera-icon {
    font-size: 13px;
}

/* 프로필 사진 업로드 진행률 */
.profile-photo-progress {
    height: 4px;
    max-width: 120px;
    border-radius: 2px;
}

.profile-photo-progress .progress-bar {
    background: linear-gradient(90deg, #4e73df, #224abe);
}

/* ==================== 통계 카드 ==================== */
.profile-stat-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 4px 0;
}

.profile-stat-icon {
    font-size: 24px;
    color: #4e73df;
    margin-bottom: 4px;
    line-height: 1;
}

.profile-stat-value {
    font-size: 13px;
    font-weight: 700;
    color: #2e3a59;
    line-height: 1.2;
    margin-bottom: 3px;
}

.profile-stat-label {
    font-size: 10px;
    color: #8a92ab !important;
    font-weight: 500;
    margin-top: 0;
    letter-spacing: 0.3px;
}

/* ==================== 이메일 표시 ==================== */
.profile-email-display {
    background: #f8f9fc;
    border: 1px solid #e3e6f0;
    border-radius: 10px;
    padding: 12px 16px;
}

.profile-email-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

.profile-email-text {
    font-size: 14px;
    color: #2e3a59;
    font-weight: 500;
}

.profile-email-help {
    font-size: 11px;
    color: #8a92ab;
}

/* ==================== 섹션 구분선 ==================== */
.profile-divider {
    border: none;
    border-top: 1px solid #e3e6f0;
    margin: 24px 0;
}

/* ==================== 섹션 제목 ==================== */
.profile-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #8a92ab;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

/* ==================== 폼 필드 개선 ==================== */
.profile-form-card .form-control {
    border-radius: 8px;
    border-color: #d1d5e8;
    padding: 10px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-form-card .form-control:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.15);
}

.profile-form-card .form-label {
    font-weight: 600;
    color: #2e3a59;
    font-size: 14px;
    margin-bottom: 6px;
}

.profile-form-card .form-text {
    font-size: 12px;
    color: #8a92ab;
}

.profile-form-card .form-check-input:checked {
    background-color: #4e73df;
    border-color: #4e73df;
}

/* ==================== 저장 버튼 ==================== */
.profile-save-btn {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(78, 115, 223, 0.3);
    transition: all 0.2s ease;
}

.profile-save-btn:hover:not(:disabled) {
    box-shadow: 0 6px 16px rgba(78, 115, 223, 0.4);
    transform: translateY(-1px);
}

.profile-save-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(78, 115, 223, 0.3);
}

/* ==================== 로그아웃 버튼 ==================== */
.profile-logout-btn {
    border-radius: 10px;
    padding: 10px 24px;
    font-weight: 500;
    color: #6c757d;
    border-color: #d1d5e8;
    transition: all 0.2s ease;
}

.profile-logout-btn:hover {
    background-color: #f8f9fc;
    border-color: #adb5bd;
    color: #495057;
}

/* ==================== 알림 메시지 ==================== */
.profile-form-card .alert {
    border-radius: 10px;
    border: none;
    font-size: 14px;
}

.profile-form-card .alert-success {
    background-color: #d4edda;
    color: #155724;
}

.profile-form-card .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* ==================== 로그인 필요 안내 ==================== */
.profile-login-card {
    border: none;
    border-radius: 12px;
    background: #f8f9fc;
    text-align: center;
    padding: 40px 24px;
}

.profile-login-icon {
    font-size: 48px;
    color: #c5cad9;
    margin-bottom: 12px;
}

.profile-login-text {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 20px;
}

.profile-login-btn {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    border: none;
    border-radius: 10px;
    padding: 10px 28px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(78, 115, 223, 0.3);
}
