@charset "utf-8";

/* =====================================================
   PROFILE PAGE — Discord-inspired layout
   크림/베이지 테마, DM Serif Display 헤딩
===================================================== */

/* ── 레이아웃 ── */
.pf-page {
    display: flex;
    gap: 20px;
    max-width: 1080px;
    margin: 32px auto;
    padding: 0 16px;
    align-items: flex-start;
}

/* ── 왼쪽 사이드 ── */
.pf-side {
    width: 300px;
    flex-shrink: 0;
    background: var(--card-bg-color, #fff);
    border: 1px solid var(--card-border-color, #e8e0d5);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* 배너 */
.pf-banner {
    width: 100%;
    height: 100px;
    overflow: hidden;
    position: relative;
}
.pf-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pf-banner-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        var(--primary-color, #c8a882) 0%,
        color-mix(in srgb, var(--primary-color, #c8a882) 60%, #fff) 100%
    );
}

/* 아바타 */
.pf-avatar-wrap {
    padding: 0 16px;
    margin-top: -28px;
    position: relative;
    z-index: 1;
}
.pf-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid var(--card-bg-color, #fff);
    overflow: hidden;
    background: var(--light-bg-color, #f5ede0);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.pf-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pf-avatar .fa-circle-user {
    font-size: 2.2rem;
    color: var(--text-muted, #b8a898);
}

/* 닉네임 & 태그라인 */
.pf-identity {
    padding: 10px 16px 0;
}
.pf-nick {
    font-family: 'Pretendard', sans-serif;
    font-size: 1.24rem;
    font-weight: 800;
    color: var(--text-color, #514e41);
    margin: 0 0 1px;
    line-height: 1.3;
}
.pf-tagline {
    font-size: 0.83rem;
    color: var(--text-muted, #9a8878);
    margin: 0;
    line-height: 1.5;
}

/* 메타 정보 */
.pf-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px 15px;
    font-size: 0.78rem;
    color: var(--text-muted, #9a8878);
}
.pf-meta i { font-size: 0.75rem; }

/* 관리자 편집 버튼 */
.pf-admin-bar {
    padding: 12px 16px 16px;
}
.pf-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: var(--primary-color, #c8a882);
    color: #fff;
    border-radius: 6px;
    font-size: 0.78rem;
    text-decoration: none;
    transition: opacity 0.15s;
}
.pf-edit-btn:hover { opacity: 0.85; }

/* ── 오른쪽 메인 ── */
.pf-main {
    flex: 1;
    min-width: 0;
    background: var(--card-bg-color, #fff);
    border: 1px solid var(--card-border-color, #e8e0d5);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* ── 탭 ── */
.pf-tabs {
    display: flex;
    gap: 0;
    padding: 0 20px;
    border-bottom: 1px solid var(--card-border-color, #e8e0d5);
    position: relative;
    background : var(--primary-color);
}
.pf-tab {
    background: none;
    border: none;
    padding: 9px 15px 9px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-muted, #fff9f4);
    cursor: pointer;
    transition: color 0.15s;
    position: relative;
    font-family: inherit;
}
.pf-tab:hover { color: var(--text-color, #3a3028); }
.pf-tab.active { color: var(--text-color, #3a3028); }
.pf-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-color);

    border-radius: 2px 2px 0 0;
}

/* ── 패널 ── */
.pf-panel {
    display: none;
    padding: 20px;
    animation: pfFadeIn 0.18s ease;
}
.pf-panel.active { display: block; }

@keyframes pfFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── 공지사항 목록 ── */
.pf-notice-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pf-notice-item {}
.pf-notice-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.12s;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}
.pf-notice-link:hover {
    background: var(--light-bg-color, #faf5ef);
}
.pf-notice-title {
    font-size: 0.88rem;
    color: var(--text-color, #3a3028);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pf-notice-date {
    font-size: 0.75rem;
    color: var(--text-muted, #9a8878);
    flex-shrink: 0;
}

/* 뒤로가기 버튼 */
.pf-notice-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: var(--text-muted, #9a8878);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 2px 0;
    margin-bottom: 14px;
    font-family: inherit;
    transition: color 0.15s;
}
.pf-notice-back:hover { color: var(--text-color, #3a3028); }

/* 글 뷰 헤더 */
.pf-notice-detail-header {
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--card-border-color, #e8e0d5);
}
.pf-notice-detail-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color, #3a3028);
    margin: 0 0 4px;
}
.pf-notice-detail-date {
    font-size: 0.75rem;
    color: var(--text-muted, #9a8878);
}

/* 글 본문 */
.pf-notice-detail-body {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--content-font-color, #4a4038);
}
.pf-notice-detail-body img { max-width: 100%; border-radius: 6px; }

/* ── 자기소개 ── */
.pf-intro-body {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--content-font-color, #4a4038);
}
.pf-intro-body img {
    max-width: 100%;
    border-radius: 8px;
}

/* ── 빈 상태 ── */
.pf-empty {
    font-size: 0.85rem;
    color: var(--text-muted, #9a8878);
    margin: 0 0 8px;
}
.pf-edit-hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--primary-color, #c8a882);
    text-decoration: none;
}
.pf-edit-hint:hover { text-decoration: underline; }

/* ── 반응형 ── */
@media (max-width: 640px) {
    .pf-page {
        flex-direction: column;
        margin: 16px auto;
        gap: 12px;
    }
    .pf-side {
        width: 100%;
    }
}

/* ── 사이드 편집 모드 ── */
.pf-side-edit-body {
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--card-border-color, #e8e0d5);
}
.pf-inline-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pf-inline-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted, #9a8878);
}
.pf-inline-input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--card-border-color, #e0d8ce);
    border-radius: 6px;
    font-size: 0.84rem;
    font-family: inherit;
    color: var(--text-color, #3a3028);
    background: var(--card-bg-color, #fff);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.pf-inline-input:focus { border-color: var(--primary-color, #c8a882); }
.pf-inline-input::placeholder { color: var(--text-muted, #bbb); }

/* 이미지 업로드 행 */
.pf-inline-img-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pf-inline-banner-preview {
    width: 90px; height: 28px; border-radius: 5px;
    overflow: hidden; border: 1px dashed var(--card-border-color, #e0d8ce);
    background: var(--light-bg-color, #faf5ef);
    position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pf-inline-avatar-preview {
    width: 28px; height: 28px; border-radius: 50%;
    overflow: hidden; border: 1px dashed var(--card-border-color, #e0d8ce);
    background: var(--light-bg-color, #faf5ef);
    position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pf-inline-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-inline-preview-empty { font-size: 0.72rem; color: var(--text-muted, #bbb); }
.pf-inline-img-clear {
    position: absolute; top: 1px; right: 1px;
    width: 13px; height: 13px; border-radius: 50%;
    background: rgba(0,0,0,0.45); border: none; color: #fff;
    font-size: 0.48rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.pf-inline-upload-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 5px 8px;
    background: var(--light-bg-color, #f5ede0);
    border: 1px solid var(--card-border-color, #e0d8ce);
    border-radius: 6px; font-size: 0.75rem;
    color: var(--text-muted, #9a8878); cursor: pointer;
}
.pf-inline-upload-btn:hover { filter: brightness(0.96); }

/* 저장/취소 */
.pf-inline-actions { display: flex; gap: 6px; margin-top: 2px; }
.pf-inline-save-btn {
    flex: 1; padding: 6px 0;
    background: var(--primary-color, #c8a882); color: #fff;
    border: none; border-radius: 6px;
    font-size: 0.8rem; font-family: inherit; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 4px;
    transition: opacity 0.15s;
}
.pf-inline-save-btn:hover { opacity: 0.85; }
.pf-inline-save-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.pf-inline-cancel-btn {
    padding: 6px 10px; background: none;
    border: 1px solid var(--card-border-color, #e0d8ce);
    border-radius: 6px; font-size: 0.8rem; font-family: inherit;
    color: var(--text-muted, #9a8878); cursor: pointer;
    transition: background 0.15s;
}
.pf-inline-cancel-btn:hover { background: var(--light-bg-color, #faf5ef); }

/* 편집 버튼 button으로 */
.pf-edit-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px;
    background: var(--primary-color, #c8a882); color: #fff;
    border: none; border-radius: 6px;
    font-size: 0.78rem; font-family: inherit; cursor: pointer;
    transition: opacity 0.15s; text-decoration: none;
}
.pf-edit-btn:hover { opacity: 0.85; }
