/* =========================================================
   portfolio.css : portfolio.html
   (page header, filter tabs, gallery)
   Depends on base.css (shares .works-grid / .work-card / modal)
   ========================================================= */

.page-wrap {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 5% 120px;
}

/* --- Page header --- */
.page-header {
    text-align: center;
    padding: 150px 20px 40px;
    position: relative;
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.page-header p { color: var(--text-muted); font-size: 1.1rem; }

/* --- Filter tabs --- */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.filter-tab {
    padding: 10px 22px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: var(--surface-solid);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.filter-tab:hover {
    color: var(--text-main);
    border-color: rgba(10, 92, 255, 0.4);
}

.filter-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 8px 20px rgba(10, 92, 255, 0.3);
}

/* --- Gallery (uses shared .works-grid / .work-card) --- */
.work-watch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 0.4rem;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
}

.gallery-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 0;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .page-header h1 { font-size: 2.2rem; }
    .filter-tab { padding: 9px 18px; font-size: 0.9rem; }
}
