/* /portfolio — index. Dark theme, shared design tokens. */

.pf { padding-top: var(--header-height); padding-bottom: 64px; }

/* Hero */
.pf-hero { position: relative; background: var(--panel-soft-bg); border: .5px solid var(--border-soft); border-radius: var(--radius-lg, 16px); padding: 40px 32px; margin: 24px auto; overflow: hidden; min-height: 190px; }
.pf-hero-glow { position: absolute; top: 0; right: 0; bottom: 0; width: 45%; background: linear-gradient(135deg, transparent 0%, rgba(255,90,0,.08) 50%, rgba(255,90,0,.18) 100%); pointer-events: none; }
.pf-hero-kicker { position: relative; margin: 0 0 12px; font-size: .7rem; letter-spacing: .15em; color: rgba(255,90,0,.95); text-transform: uppercase; }
.pf-hero-title { position: relative; margin: 0 0 .5rem; font-size: 2rem; font-weight: 500; color: var(--text-strong); }
.pf-hero-subtitle { position: relative; margin: 0; color: var(--text-soft); max-width: 620px; }
.pf-hero-stats { position: relative; display: flex; align-items: center; gap: 28px; margin-top: 26px; }
.pf-stat-num { display: block; font-size: 1.6rem; font-weight: 500; color: var(--text-strong); line-height: 1; }
.pf-stat-label { display: block; margin-top: 4px; font-size: .7rem; letter-spacing: .05em; color: var(--text-soft); }
.pf-stat-sep { width: 1px; align-self: stretch; background: var(--border-medium); }

/* Filters */
.pf-filters { position: sticky; top: var(--header-height); z-index: 10; background: var(--surface-page); border-bottom: .5px solid var(--divider); padding: 12px 0; margin-bottom: 24px; }
.pf-filters-inner { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.pf-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pf-chips--brand { opacity: .92; }
.pf-chip { font-size: .78rem; padding: 6px 12px; border-radius: 999px; border: .5px solid var(--border-medium); color: var(--text-soft); white-space: nowrap; text-decoration: none; transition: var(--transition-fast, .15s ease); }
.pf-chip:hover { border-color: var(--border-strong); color: var(--text-light); }
.pf-chip.is-active { background: var(--text-light); color: var(--surface-page); border-color: var(--text-light); }
.pf-chip-n { opacity: .55; font-size: .68rem; }
.pf-sort { margin-left: auto; display: flex; gap: 6px; }
.pf-sort-select { background: var(--input-bg); color: var(--input-text); border: .5px solid var(--input-border); border-radius: 8px; padding: 6px 10px; font-size: .78rem; }
.pf-sort-btn { background: var(--surface-3); color: var(--text-light); border: 0; border-radius: 8px; padding: 6px 12px; font-size: .78rem; cursor: pointer; }

/* Section + grids */
.pf-section { margin-bottom: 40px; }
.section-title { color: var(--text-strong); }
.pf-found { color: var(--text-faint); font-size: .8rem; }
.pf-pinned { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 14px; }
.pf-grid { display: grid; gap: 16px; margin-top: 14px; }
.pf-batch { display: contents; }

/* contents-display batch can't itself be a grid item; cards flow into .pf-grid */
.pf-grid { grid-template-columns: repeat(3, 1fr); }

.pf-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 260px; padding: 18px; border-radius: var(--radius-md, 12px); background-color: var(--media-tile-bg); background-image: url("/assets/images/placeholder.svg"); background-size: cover; background-position: center; color: #fff; text-decoration: none; overflow: hidden; border: .5px solid var(--border-soft); transition: transform var(--transition-fast, .15s ease), border-color .15s ease; }
.pf-card:hover { transform: translateY(-3px); border-color: rgba(255,90,0,.4); }
.pf-card--pinned { min-height: 320px; }
/* Dark bottom-wash over the photo — same shape in both themes. */
.pf-card-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.5) 45%, rgba(10,10,10,.15) 100%); }
.pf-card-body { position: relative; display: flex; flex-direction: column; gap: 4px; }
.pf-card-brand { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,90,0,.95); }
.pf-card-title { font-size: 1.15rem; font-weight: 600; }
.pf-card-year { opacity: .6; font-weight: 400; font-size: .9rem; }
.pf-card-sub { font-size: .82rem; color: rgba(255,255,255,.72); }

.pf-more-wrap { display: flex; justify-content: center; margin-top: 24px; }
.pf-empty { text-align: center; padding: 48px 16px; }
.pf-empty-title { font-size: 1.1rem; color: var(--text-strong); margin: 0 0 6px; }
.pf-empty-text { color: var(--text-soft); margin: 0 0 18px; }

/* CTA */
.pf-cta { margin-top: 48px; }
.pf-cta-box { background: var(--cta-card-bg); border: .5px solid var(--cta-card-border); border-radius: var(--radius-lg, 16px); padding: 36px 32px; text-align: center; }
.pf-cta-title { color: var(--cta-card-text); font-size: 1.5rem; margin: 0 0 .5rem; }
.pf-cta-sub { color: var(--cta-card-muted); margin: 0 0 20px; }
.pf-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-whatsapp { display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #20bd5a; }

@media (max-width: 768px) {
    .pf-hero { padding: 24px 16px; }
    .pf-hero-title { font-size: 1.5rem; }
    .pf-filters { position: static; }
    .pf-filters-inner { gap: 8px; }
    .pf-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
    .pf-sort { margin-left: 0; width: 100%; }
    .pf-pinned, .pf-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .pf-pinned, .pf-grid { grid-template-columns: repeat(2, 1fr); }
}
