/**
 * HC Login Pro - 프로필 스타일 (Joyn 통합)
 * 
 * File: profile.css
 * Version: 3.2.0
 */

/* ========================================
   프로필 래퍼
   ======================================== */
.hc-profile-wrapper {
    max-width: var(--hc-form-width-xl);
    margin: 0 auto;
    font-family: var(--hc-font-sans);
}

/* ========================================
   프로필 헤더 (아바타 + 이름)
   ======================================== */
.hc-profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--hc-space-4);
    padding: var(--hc-space-6);
    background: linear-gradient(135deg, var(--hc-primary-light), var(--hc-bg-secondary));
    border-radius: var(--hc-radius-xl);
    margin-bottom: var(--hc-space-6);
}

/* ========================================
   아바타
   ======================================== */
.hc-avatar-container {
    position: relative;
    display: inline-block;
}

.hc-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--hc-bg-primary);
    box-shadow: var(--hc-shadow-lg);
    background: var(--hc-bg-tertiary);
}

.hc-avatar-lg {
    width: 120px;
    height: 120px;
}

.hc-avatar-sm {
    width: 64px;
    height: 64px;
    border-width: 2px;
}

/* 아바타 업로드 버튼 */
.hc-avatar-upload {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hc-primary);
    color: var(--hc-text-inverse);
    border: 2px solid var(--hc-bg-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--hc-transition);
    font-size: 14px;
}

.hc-avatar-upload:hover {
    background: var(--hc-primary-hover);
    transform: scale(1.1);
}

.hc-avatar-upload input[type="file"] {
    display: none;
}

/* ========================================
   프로필 정보
   ======================================== */
.hc-profile-info {
    text-align: center;
}

.hc-profile-name {
    font-size: var(--hc-text-xl);
    font-weight: var(--hc-font-bold);
    color: var(--hc-text-primary);
    margin: 0 0 var(--hc-space-1) 0;
}

.hc-profile-email {
    font-size: var(--hc-text-sm);
    color: var(--hc-text-secondary);
    margin: 0;
}

.hc-profile-role {
    display: inline-flex;
    align-items: center;
    gap: var(--hc-space-1);
    margin-top: var(--hc-space-2);
    padding: var(--hc-space-1) var(--hc-space-3);
    background: var(--hc-primary);
    color: var(--hc-text-inverse);
    font-size: var(--hc-text-xs);
    font-weight: var(--hc-font-semibold);
    border-radius: var(--hc-radius-full);
}

/* ========================================
   프로필 통계
   ======================================== */
.hc-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--hc-space-4);
    padding: var(--hc-space-5);
    background: var(--hc-bg-card);
    border-radius: var(--hc-radius-lg);
    box-shadow: var(--hc-shadow);
    margin-bottom: var(--hc-space-6);
}

.hc-stat-item {
    text-align: center;
}

.hc-stat-value {
    font-size: var(--hc-text-2xl);
    font-weight: var(--hc-font-bold);
    color: var(--hc-primary);
    line-height: 1.2;
}

.hc-stat-label {
    font-size: var(--hc-text-xs);
    color: var(--hc-text-muted);
    margin-top: var(--hc-space-1);
}

/* ========================================
   프로필 섹션
   ======================================== */
.hc-profile-section {
    background: var(--hc-bg-card);
    border-radius: var(--hc-radius-lg);
    padding: var(--hc-space-5);
    margin-bottom: var(--hc-space-4);
    box-shadow: var(--hc-shadow);
}

.hc-profile-section-title {
    font-size: var(--hc-text-lg);
    font-weight: var(--hc-font-semibold);
    color: var(--hc-text-primary);
    margin: 0 0 var(--hc-space-4) 0;
    padding-bottom: var(--hc-space-3);
    border-bottom: 2px solid var(--hc-border);
    display: flex;
    align-items: center;
    gap: var(--hc-space-2);
}

.hc-profile-section-title i {
    color: var(--hc-primary);
}

/* ========================================
   정보 행
   ======================================== */
.hc-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--hc-space-3) 0;
    border-bottom: 1px solid var(--hc-border-light);
}

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

.hc-info-label {
    font-size: var(--hc-text-sm);
    color: var(--hc-text-secondary);
    font-weight: var(--hc-font-medium);
}

.hc-info-value {
    font-size: var(--hc-text-sm);
    color: var(--hc-text-primary);
    font-weight: var(--hc-font-semibold);
    text-align: right;
}

/* ========================================
   상태 배지
   ======================================== */
.hc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--hc-space-1);
    padding: var(--hc-space-1) var(--hc-space-3);
    font-size: var(--hc-text-xs);
    font-weight: var(--hc-font-semibold);
    border-radius: var(--hc-radius-full);
}

.hc-status-badge.approved,
.hc-status-badge.success {
    background: var(--hc-success-light);
    color: #065f46;
}

.hc-status-badge.pending,
.hc-status-badge.warning {
    background: var(--hc-warning-light);
    color: #92400e;
}

.hc-status-badge.rejected,
.hc-status-badge.error {
    background: var(--hc-error-light);
    color: #991b1b;
}

.hc-status-badge.info {
    background: var(--hc-info-light);
    color: #1e40af;
}

/* ========================================
   프로필 탭
   ======================================== */
.hc-profile-tabs {
    display: flex;
    gap: var(--hc-space-1);
    background: var(--hc-bg-tertiary);
    padding: var(--hc-space-1);
    border-radius: var(--hc-radius-lg);
    margin-bottom: var(--hc-space-5);
    overflow-x: auto;
}

.hc-profile-tab {
    flex: 1;
    min-width: 80px;
    padding: var(--hc-space-3) var(--hc-space-4);
    font-size: var(--hc-text-sm);
    font-weight: var(--hc-font-medium);
    color: var(--hc-text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--hc-radius-md);
    cursor: pointer;
    transition: all var(--hc-transition);
    white-space: nowrap;
    text-align: center;
}

.hc-profile-tab:hover {
    color: var(--hc-text-primary);
    background: var(--hc-bg-secondary);
}

.hc-profile-tab.active {
    color: var(--hc-text-inverse);
    background: var(--hc-primary);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

/* ========================================
   모바일 반응형
   ======================================== */
@media (max-width: 640px) {
    .hc-profile-header {
        padding: var(--hc-space-5);
    }
    
    .hc-avatar {
        width: 80px;
        height: 80px;
    }
    
    .hc-profile-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--hc-space-2);
        padding: var(--hc-space-4);
    }
    
    .hc-stat-value {
        font-size: var(--hc-text-xl);
    }
    
    .hc-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--hc-space-1);
    }
    
    .hc-info-value {
        text-align: left;
    }
    
    .hc-profile-tabs {
        padding: var(--hc-space-1);
    }
    
    .hc-profile-tab {
        padding: var(--hc-space-2) var(--hc-space-3);
        font-size: var(--hc-text-xs);
    }
}
