/**
 * 파일명: profile.css
 * 위치: /wp-content/plugins/joyn-mypage/assets/css/
 * 설명: 프로필 페이지 전용 스타일
 */

/* 프로필 페이지는 common.css의 컨테이너 설정을 상속받음 */

.joyn-profile-wrapper .profile-header {
    text-align: center;
}

.joyn-profile-wrapper .profile-top {
    display: flex;
    align-items: center;
    gap: var(--joyn-space-md);
    margin-bottom: var(--joyn-space-lg);
}

.joyn-profile-wrapper .avatar {
    width: clamp(60px, 12vw, 80px);
    height: clamp(60px, 12vw, 80px);
    border-radius: 50%;
    background: var(--joyn-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--joyn-text-lg);
    font-weight: 600;
    color: var(--joyn-text-secondary);
    border: 2px solid var(--joyn-border);
    flex-shrink: 0;
}

.joyn-profile-wrapper .profile-main {
    flex: 1;
    text-align: left;
}

.joyn-profile-wrapper .name {
    font-size: var(--joyn-text-lg);
    font-weight: 600;
    margin-bottom: 2px;
}

.joyn-profile-wrapper .email {
    font-size: var(--joyn-text-sm);
    color: var(--joyn-text-secondary);
}

.joyn-profile-wrapper .stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--joyn-space-sm);
    padding-top: var(--joyn-space-md);
    border-top: 1px solid var(--joyn-border);
}

.joyn-profile-wrapper .stat {
    text-align: center;
}

.joyn-profile-wrapper .stat-value {
    font-size: var(--joyn-text-base);
    font-weight: 600;
    display: block;
}

.joyn-profile-wrapper .stat-label {
    font-size: var(--joyn-text-xs);
    color: var(--joyn-text-secondary);
}

.joyn-profile-wrapper .section-title {
    font-size: var(--joyn-text-base);
    font-weight: 600;
    margin-bottom: var(--joyn-space-md);
    display: flex;
    align-items: center;
    gap: var(--joyn-space-xs);
}

.joyn-profile-wrapper .info-row {
    display: flex;
    justify-content: space-between;
    padding: var(--joyn-space-sm) 0;
    border-bottom: 1px solid var(--joyn-bg-secondary);
}

.joyn-profile-wrapper .info-row:last-child {
    border-bottom: none;
}

.joyn-profile-wrapper .info-label {
    font-size: var(--joyn-text-sm);
    color: var(--joyn-text-secondary);
}

.joyn-profile-wrapper .info-value {
    font-size: var(--joyn-text-sm);
    font-weight: 500;
}

.joyn-profile-wrapper .actions {
    display: flex;
    gap: var(--joyn-space-sm);
    margin-top: var(--joyn-space-lg);
}

.joyn-profile-wrapper .actions .joyn-btn {
    flex: 1;
}

.joyn-profile-wrapper .badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--joyn-bg-secondary);
    border-radius: 4px;
    font-size: var(--joyn-text-xs);
    color: var(--joyn-text-secondary);
}