/**
 * v7/user/public-profile.css - v7 공개 프로필 페이지 전용 스타일
 *
 * v7 디자인 표준: 보더 없는 디자인, 연한 배경색, fal 아이콘
 * Web Awesome Pro CSS 변수 사용, Bootstrap 미사용
 * 라이트 모드 전용 (다크 모드 미적용)
 */

/* ─── 페이지 컨테이너 ─── */
.public-profile-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 0;
}

/* ─── 에러 상태 ─── */
.profile-error-card {
    max-width: 420px;
    margin: 2rem auto;
    text-align: center;
    padding: 3rem 2rem;
    background: #f8fafc;
    border-radius: 16px;
}

.profile-error-icon {
    font-size: 2.5rem;
    color: var(--wa-color-danger-50, #dc2626);
    margin-bottom: 1rem;
    display: block;
}

.profile-error-card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--wa-color-neutral-10, #1e293b);
    margin: 0 0 0.5rem 0;
}

.profile-error-card p {
    font-size: 0.88rem;
    color: var(--wa-color-neutral-60, #64748b);
    margin: 0 0 1.5rem 0;
}

/* ─── 프로필 헤더 섹션 ─── */
.profile-header-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem 1.25rem;
}

/* 아바타 */
.profile-avatar-wrapper {
    margin-bottom: 0.75rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--wa-color-brand-95, #e7f5ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: var(--wa-color-brand-50, #3178c0);
}

/* 닉네임 */
.profile-nickname {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--wa-color-neutral-10, #1e293b);
    margin: 0 0 1rem 0;
}

/* 통계 — 숫자 강조 스타일 */
.profile-stats {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 1.25rem;
}

.profile-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.profile-stat-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--wa-color-neutral-10, #1e293b);
    line-height: 1.2;
}

.profile-stat-label {
    font-size: 0.7rem;
    color: var(--wa-color-neutral-60, #64748b);
    letter-spacing: 0.02em;
}

/* 액션 버튼 */
.profile-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ─── 최근 글/댓글 섹션 ─── */
.profile-recent-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.25rem;
}

.profile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.profile-section-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--wa-color-neutral-20, #334155);
}

.profile-section-title i {
    color: var(--wa-color-brand-50, #3178c0);
    font-size: 0.85rem;
}

.profile-section-more {
    font-size: 0.78rem;
    color: var(--wa-color-neutral-60, #64748b);
    text-decoration: none;
    transition: color 0.15s ease;
}

.profile-section-more:hover {
    color: var(--wa-color-brand-50, #3178c0);
}

.profile-section-more i {
    font-size: 0.65rem;
    margin-left: 2px;
}

/* ─── 글 목록 ─── */
.profile-post-list {
    display: flex;
    flex-direction: column;
}

.profile-post-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.5rem;
    text-decoration: none;
    color: var(--wa-color-neutral-20, #334155);
    border-radius: 8px;
    transition: background 0.15s ease;
}

.profile-post-item:hover {
    background: #fff;
}

.profile-post-item + .profile-post-item {
    border-top: 1px solid #f1f5f9;
}

.profile-post-subject {
    flex: 1;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-post-date {
    font-size: 0.73rem;
    color: var(--wa-color-neutral-60, #64748b);
    flex-shrink: 0;
}

/* ─── 댓글 목록 ─── */
.profile-comment-list {
    display: flex;
    flex-direction: column;
}

.profile-comment-item {
    display: flex;
    align-items: flex-start;
    padding: 0.6rem 0.5rem;
    text-decoration: none;
    color: var(--wa-color-neutral-20, #334155);
    border-radius: 8px;
    transition: background 0.15s ease;
}

.profile-comment-item:hover {
    background: #fff;
}

.profile-comment-item + .profile-comment-item {
    border-top: 1px solid #f1f5f9;
}

.profile-comment-body {
    flex: 1;
    min-width: 0;
}

.profile-comment-content {
    font-size: 0.85rem;
    color: var(--wa-color-neutral-20, #334155);
    margin: 0 0 0.15rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-comment-date {
    font-size: 0.73rem;
    color: var(--wa-color-neutral-60, #64748b);
}

/* ─── 빈 상태 ─── */
.profile-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--wa-color-neutral-60, #64748b);
}

.profile-empty-icon {
    font-size: 1.5rem;
    opacity: 0.5;
    margin-bottom: 0.5rem;
    display: block;
}

.profile-empty p {
    font-size: 0.83rem;
    margin: 0;
}

/* ─── 반응형 ─── */
@media (max-width: 991.98px) {
    .public-profile-page {
        padding: 1rem 0.75rem;
        gap: 1.25rem;
    }

    .profile-avatar,
    .profile-avatar-placeholder {
        width: 96px;
        height: 96px;
    }

    .profile-avatar-placeholder {
        font-size: 2.2rem;
    }

    .profile-header-section {
        padding: 1.25rem 0.75rem 1rem;
    }

    .profile-nickname {
        font-size: 1.05rem;
    }

    .profile-stats {
        gap: 1.75rem;
    }

    .profile-stat-number {
        font-size: 1rem;
    }

    .profile-recent-section {
        padding: 1rem;
        border-radius: 10px;
    }

    .profile-post-item,
    .profile-comment-item {
        padding: 0.5rem 0.35rem;
    }
}
