/**
 * 파일명: project.css
 * 수정일자: 2026-02-22
 * 용도: 프로젝트 목록 페이지 전용 스타일 (와이어프레임 느낌)
 * 구동 방법: project/index.html에서 로드.
 * 디자인: 흰 배경, 굵은 검정 테두리, 미니멀 구조적
 */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
}

.project-layout {
    display: flex;
    min-height: 100vh;
}

/* 왼쪽 사이드바 - 프로젝트 리스트 */
.project-sidebar {
    width: 220px;
    min-width: 220px;
    border-right: 3px solid #000000;
    padding: 20px 0 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.project-sidebar-title {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 auto;
    padding: 20px 0;
    text-align: center;
    letter-spacing: 2px;
}

.project-list {
    list-style: none;
    padding: 0 15px;
    margin: 0;
    flex: 1;
}

.project-list li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #000000;
}

.project-list li:last-child {
    border-bottom: none;
}

.project-list a {
    display: block;
    padding: 12px 10px;
    color: #000000;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.project-list a:hover,
.project-list a.active {
    background: #f0f0f0;
}

.project-list .project-name {
    display: block;
    font-weight: 600;
}

.project-list .category-label {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-top: 4px;
}

/* 메인 콘텐츠 영역 */
.project-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* 상단 헤더 - 프로젝트 이름, 카테고리 */
.project-header {
    padding: 30px 40px;
    border-bottom: 3px solid #000000;
    background: #ffffff;
}

.project-header h1 {
    font-size: 1.8rem;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.project-header .project-category {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

/* 참고 자료 (탭 내 콘텐츠) */
.ref-link {
    display: inline-block;
    padding: 8px 16px;
    margin: 6px 10px 6px 0;
    border: 2px solid #000000;
    color: #000000;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.ref-link:hover {
    background: #000000;
    color: #ffffff;
}

/* 하단 상세 내용 */
.project-content {
    flex: 1;
    padding: 40px;
    border: none;
    overflow-y: auto;
    background: #ffffff;
}

.content-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #000000;
}

.content-tab {
    padding: 12px 24px;
    background: #ffffff;
    border: 2px solid #000000;
    border-bottom: none;
    margin-bottom: -2px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #000000;
    text-decoration: none;
    transition: background 0.2s;
}

.content-tab:hover {
    background: #f5f5f5;
}

.content-tab.active {
    background: #000000;
    color: #ffffff;
}

.content-panel {
    display: none;
    padding: 20px 0;
}

.content-panel.active {
    display: block;
}

.content-panel h2 {
    font-size: 1.3rem;
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #000000;
}

.content-panel h2:first-child {
    margin-top: 0;
}

.content-panel p, .content-panel li {
    margin: 10px 0;
    line-height: 1.8;
}

.content-panel ul {
    padding-left: 24px;
}

.content-panel a {
    color: #000000;
    text-decoration: underline;
}

.content-panel a:hover {
    text-decoration: none;
}

/* 개인정보처리방침 iframe */
.privacy-iframe {
    width: 100%;
    min-height: 600px;
    border: 2px solid #000000;
    margin-top: 20px;
}

/* 사이드바 하단 메인으로 링크 */
.project-sidebar .back-link {
    display: block;
    margin-top: auto;
    padding: 15px 15px;
    color: #000000;
    text-decoration: underline;
    font-size: 0.9rem;
    border-top: 2px solid #000000;
}

.project-sidebar .back-link:hover {
    text-decoration: none;
    background: #f0f0f0;
}

/* 빈 상태 */
.project-empty .project-content {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .project-layout {
        flex-direction: column;
    }

    .project-sidebar {
        width: 100%;
        min-width: 100%;
        border-right: none;
        border-bottom: 3px solid #000000;
    }

    .project-sidebar-title {
        writing-mode: horizontal-tb;
        transform: none;
        padding: 15px 0;
    }

    .project-header, .project-content {
        padding: 20px;
    }
}
