/* ==========================================================================
   Portfolio page (.pf-*)
   ========================================================================== */

.pf-page {
    max-width: var(--vp-container-width, 1348px);
    margin: 0 auto;
    padding: 3rem var(--vp-page-padding-x, 1.5rem) 4rem;
}

.pf-hero {
    margin-bottom: 2.5rem;
}

.pf-hero-inner {
    max-width: 720px;
}

.pf-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
    margin: 0 0 0.35rem;
}

.pf-title {
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1.2;
    margin: 0 0 0.8rem;
}

.pf-intro {
    margin: 0;
    max-width: 36rem;
    color: rgba(148, 163, 184, 0.98);
}

/* Filters */

.pf-filters {
    margin-bottom: 1.75rem;
}

.pf-filters-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pf-filter-btn {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: transparent;
    color: rgba(148, 163, 184, 0.95);
    padding: 0.4rem 0.95rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.18s ease-out;
}

.pf-filter-btn:hover {
    border-color: rgba(94, 234, 212, 0.7);
    color: rgba(94, 234, 212, 1);
}

.pf-filter-btn.is-active {
    background: rgba(94, 234, 212, 0.1);
    border-color: rgba(94, 234, 212, 1);
    color: #e5e7eb;
}

/* Grid */

.pf-grid-wrap {
    margin-top: 0.5rem;
}

.pf-empty {
    color: rgba(148, 163, 184, 0.98);
    margin-top: 1.5rem;
}

.pf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
}

/* Card */

.pf-item {
    list-style: none;
}

.pf-card {
    display: flex;
    flex-direction: column;
    border-radius: 1.1rem;
    overflow: hidden;
    background: radial-gradient(circle at top left,
        rgba(15, 23, 42, 0.98),
        rgba(15, 23, 42, 0.96));
    border: 1px solid rgba(15, 23, 42, 1);
    text-decoration: none;
    color: inherit;
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.52),
        inset 0 0 0 0 rgba(94, 234, 212, 0.0);
    transition:
        transform 160ms ease-out,
        box-shadow 160ms ease-out,
        border-color 160ms ease-out,
        background 160ms ease-out;
    position: relative;
}

.pf-card:hover {
    transform: translateY(-4px);
    border-color: rgba(94, 234, 212, 0.5);
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.65),
        inset 0 0 0 1px rgba(94, 234, 212, 0.2);
    background: radial-gradient(circle at top left,
        rgba(15, 23, 42, 1),
        rgba(15, 23, 42, 0.98));
}

/* Thumbnail */

.pf-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.pf-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 220ms ease-out;
    display: block;
}

.pf-card:hover .pf-thumb img {
    transform: scale(1.06);
}

.pf-thumb-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top,
        rgba(15, 23, 42, 0.0),
        rgba(15, 23, 42, 0.45));
    pointer-events: none;
}

/* Badges */

.pf-badges {
    position: absolute;
    inset-inline: 0.75rem;
    top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: space-between;
    align-items: flex-start;
}

.pf-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    line-height: 1;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(15, 23, 42, 0.7);
    white-space: nowrap;
}

.pf-badge-type {
    background: linear-gradient(90deg,
        rgba(15, 23, 42, 0.92),
        rgba(15, 23, 42, 0.88));
    color: rgba(226, 232, 240, 0.98);
}

.pf-badge-featured {
    background: linear-gradient(90deg,
        rgba(45, 212, 191, 0.16),
        rgba(59, 130, 246, 0.25));
    color: #a5f3fc;
}

/* Body */

.pf-body {
    padding: 0.9rem 1rem 1.1rem;
}

.pf-item-title {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    line-height: 1.3;
    color: #e5e7eb;
}

.pf-meta {
    font-size: 0.78rem;
}

.pf-subtitle {
    margin: 0 0 0.5rem;
    color: rgba(148, 163, 184, 1);
}

.pf-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.pf-meta-pill {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(30, 64, 175, 0.22);
    color: rgba(191, 219, 254, 0.98);
}

.pf-meta-pill-muted {
    background: rgba(15, 23, 42, 0.9);
    color: rgba(148, 163, 184, 0.98);
}

/* Responsive tweaks */

@media (max-width: 640px) {
    .pf-page {
        padding-inline: var(--vp-page-padding-x-mobile, 1rem);
    }

    .pf-body {
        padding-inline: 0.85rem;
        padding-bottom: 0.95rem;
    }

    .pf-grid {
        gap: 1.1rem;
    }
}
