/* 포트폴리오 목록 — 토큰과 페이지 헤더/카드 구조는 category/index.css 와 동일하게 맞춘다 */
:root {
    --bg: #f7f8fa;
    --bg-subtle: #f0f1f4;
    --panel: #ffffff;
    --border: #e5e7eb;
    --border-light: #f0f1f4;
    --text: #111827;
    --text-secondary: #374151;
    --muted: #6b7280;
    --accent: #111827;
    --accent-hover: #374151;
    --accent-light: #f3f4f6;
    --accent-subtle: #f9fafb;
    --radius: 12px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--bg);
}

/* ==================== 페이지 레이아웃 ==================== */
.page-container .page-wrap.portfolio-page-wrap {
    padding: 0 !important;
    max-width: 100%;
}

.portfolio-page {
    padding: 0;
    min-height: 100vh;
    background: var(--bg);
}

/* ==================== 페이지 헤더 ==================== */
.page-header {
    padding: 32px 40px 24px;
}

.page-header-content {
    max-width: 100%;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    color: var(--text);
}

.page-subtitle {
    font-size: 15px;
    color: var(--muted);
    margin: 0 0 12px 0;
}

/* 브레드크럼 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.breadcrumb-link {
    color: var(--muted);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-link:hover {
    color: var(--text);
}

.breadcrumb-separator {
    color: var(--border);
    display: flex;
    align-items: center;
}

.breadcrumb-current {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==================== 메인 콘텐츠 ==================== */
.portfolio-content {
    padding: 0 40px 60px;
}

.portfolio-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    border: 1px solid var(--border-light);
}

.total-count {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.total-count strong {
    color: var(--text);
    font-weight: 700;
}

/* ==================== 포트폴리오 그리드 ==================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* 카드 자체(.portfolio-card 이하)는 public/stylesheets/portfolio-card.css 로 옮겼다.
 * 메인페이지 PORTFOLIO 섹션이 같은 카드를 쓰는데 이 파일은 목록 페이지에서만 link 되기 때문이다.
 * 이 파일에는 페이지 레이아웃만 남긴다. */

/* ==================== 포트폴리오 없음 ==================== */
.empty-portfolios {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 40px;
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border-light);
}

.empty-icon {
    color: var(--border);
    margin-bottom: 28px;
    padding: 24px;
    background: var(--bg);
    border-radius: 50%;
}

.empty-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px 0;
}

.empty-desc {
    font-size: 15px;
    color: var(--muted);
    margin: 0 0 28px 0;
}

.empty-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background: var(--text);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.empty-btn:hover {
    background: var(--text-secondary);
}

/* ==================== 반응형 ==================== */
@media screen and (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 900px) {
    .portfolio-content {
        padding: 0 16px 48px;
    }

    .page-header {
        padding: 24px 16px 20px;
    }

    .page-title {
        font-size: 24px;
    }
}

@media screen and (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .empty-portfolios {
        padding: 64px 20px;
    }
}
