/* plugins/portfolio/public/assets/css/brandfolio.css */
/* Brand portfolio (/portfolio): brand grid, brand page with campaigns, campaign page. Theme tokens only. */

.bf-empty { color: var(--text-muted); }
.bf-h2 { margin: 8px 0 20px; font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.bf-h2:not(:first-child) { margin-top: 56px; }

/* brand grid */
.bf-brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.bf-brand-card,
.bf-camp-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    color: var(--text);
    text-decoration: none;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.bf-brand-card:hover,
.bf-camp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.bf-brand-card:focus-visible,
.bf-camp-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.bf-brand-cover,
.bf-camp-cover {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    background:
        radial-gradient(circle at 30% 25%, rgba(var(--accent-rgb), 0.25), transparent 60%),
        var(--bg-3);
}
.bf-camp-cover { aspect-ratio: 4 / 3; }
.bf-brand-cover img,
.bf-camp-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bf-brand-meta,
.bf-camp-meta { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.bf-brand-logo { display: block; max-width: 150px; max-height: 44px; width: auto; height: auto; object-fit: contain; }
.bf-brand-name { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600; }
.bf-camp-meta strong { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; }
.bf-count { font-size: 0.86rem; color: var(--text-muted); }

/* brand + campaign hero */
.bf-crumbs { margin: 0 0 14px; font-size: 0.9rem; color: var(--text-muted); }
.bf-crumbs a { color: var(--text-muted); text-decoration: none; }
.bf-crumbs a:hover { color: var(--accent); }
.bf-hero-logo { display: block; max-width: 220px; max-height: 80px; width: auto; height: auto; object-fit: contain; margin: 0 0 16px; }
.bf-period { margin: -4px 0 12px !important; font-size: 0.95rem !important; color: var(--accent) !important; font-weight: 600; }

/* campaigns */
.bf-camp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.bf-camp-grid-sm { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* media on brand/campaign pages */
.bf-videos { margin-bottom: 36px; }
.bf-photos { margin-top: 8px; }

@media (max-width: 600px) {
    .bf-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .bf-brand-meta, .bf-camp-meta { padding: 12px 12px 14px; }
    .bf-brand-name { font-size: 1.02rem; }
    .bf-camp-grid, .bf-camp-grid-sm { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

/* campaign page: results (stat tiles) + quote from the brand */
ul.bf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 0 0 36px; padding: 0; list-style: none; }
.bf-stat { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 18px 20px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.bf-stat strong { font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; line-height: 1.1; color: var(--accent); overflow-wrap: anywhere; }
.bf-stat span { font-size: 0.92rem; line-height: 1.4; color: var(--text-muted); }
.bf-quote { margin: 40px 0 0; padding: 26px 28px; background: var(--tint); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); }
.bf-quote blockquote { margin: 0; }
.bf-quote p { margin: 0; font-family: var(--font-heading); font-size: 1.15rem; line-height: 1.6; }
.bf-quote figcaption { margin-top: 12px; font-size: 0.9rem; color: var(--text-muted); }
@media (max-width: 600px) {
    ul.bf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 28px; }
    .bf-stat { padding: 14px; }
    .bf-quote { padding: 20px; }
}
