/* ==========================================================================
   Listings — Bold Editorial Dark Theme
   Matches the homepage design language: strong sans, UPPERCASE display,
   containerized cards with generous radius, gold as sharp accent.
   Applied to Blog, Press and Resources listing pages.
   ========================================================================== */

:root {
    /* Tokens aligned with home-v2.css */
    --l-gold: #FFD700;
    --l-gold-hover: rgba(250, 204, 21, 0.4);
    --l-gold-soft: rgba(255, 215, 0, 0.08);
    --l-gold-tint: rgba(255, 215, 0, 0.04);
    --l-bg: #0A0A0A;
    --l-surface: #171717;
    --l-surface-2: #1f1f1f;
    --l-border: rgba(255, 255, 255, 0.05);
    --l-border-strong: rgba(255, 255, 255, 0.1);
    --l-white: #ffffff;
    --l-muted: rgba(255, 255, 255, 0.58);
    --l-muted-soft: rgba(255, 255, 255, 0.55);
    --l-muted-body: rgba(255, 255, 255, 0.65);

    --l-radius-sm: 12px;
    --l-radius: 24px;
    --l-radius-pill: 999px;

    --l-sans: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==========================================================================
   Shells — match homepage shell
   ========================================================================== */

.blog-shell,
.press-shell {
    background: var(--l-bg);
    color: var(--l-white);
    font-family: var(--l-sans);
    -webkit-font-smoothing: antialiased;
    width: 100%;
    overflow-x: hidden;
}

.blog-shell ::selection,
.press-shell ::selection {
    background: var(--l-gold);
    color: var(--l-bg);
}

/* ==========================================================================
   Hero — UPPERCASE heavy sans display on dark with dot-grid
   Mirrors homepage .hero-headline aesthetic, inverted colourway.
   ========================================================================== */

.list-hero {
    position: relative;
    padding: clamp(72px, 11vw, 128px) 0 clamp(48px, 7vw, 88px);
    overflow: hidden;
    border-bottom: 1px solid var(--l-border);
}

.list-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.6;
    pointer-events: none;
}

.list-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 70% at 10% 15%, rgba(255,215,0,0.08), transparent 65%);
    pointer-events: none;
}

.list-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: listFadeUp 0.7s ease both;
}

.list-hero-inner > * { max-width: 820px; }

/* Small, heavy, extra-tracked gold kicker — same spec as homepage .section-label */
.list-kicker {
    font-family: var(--l-sans);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--l-gold);
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.list-kicker::before {
    content: '';
    width: 32px;
    height: 2px;
    background: var(--l-gold);
    flex-shrink: 0;
}

/* Huge UPPERCASE sans display — spec from homepage .hero-headline */
.list-title {
    font-family: var(--l-sans);
    font-size: clamp(2.75rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--l-white);
    margin: 0;
}

/* Fade accent — matches homepage .hero-fade behaviour */
.list-title-accent {
    opacity: 0.5;
}

.list-subtitle {
    font-family: var(--l-sans);
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    font-weight: 500;
    line-height: 1.5;
    color: var(--l-muted-body);
    max-width: 100%;
    margin: 8px 0 0;
}

.list-hero-inner > .list-subtitle {
    max-width: 100%;
}

/* ==========================================================================
   Section Header — label + heading composition (matches homepage pattern)
   ========================================================================== */

.list-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 40px;
    padding-top: 64px;
}

.list-section-head-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.list-section-label {
    font-family: var(--l-sans);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--l-gold);
    margin: 0;
}

.list-section-title {
    font-family: var(--l-sans);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--l-white);
    margin: 0;
}

.list-section-count {
    font-family: var(--l-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--l-muted);
}

/* Explore / view-all link — matches homepage .explore-link */
.list-section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--l-sans);
    font-size: 14px;
    font-weight: 700;
    color: var(--l-gold);
    text-decoration: none;
    transition: gap 0.3s ease;
}

.list-section-link:hover {
    gap: 16px;
    color: var(--l-gold);
}

.list-section-link .material-symbols-outlined {
    font-size: 22px;
}

/* ==========================================================================
   Card Language — containerized, 24px radius (homepage .card-v2-link)
   Shared across blog post cards, resource cards, press rows, featured post
   ========================================================================== */

.post-card,
.resource-card,
.press-row,
.featured-post {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--l-surface);
    border: 1px solid var(--l-border);
    border-radius: var(--l-radius);
    overflow: hidden;
    transition: border-color 0.5s ease, transform 0.5s ease;
    animation: listFadeUp 0.6s ease both;
    position: relative;
}

.post-card:hover,
.resource-card:hover,
.press-row:hover,
.featured-post:hover {
    border-color: var(--l-gold-hover);
    color: inherit;
}

@keyframes listFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Image zone --- */
.post-card-image,
.resource-card-image,
.featured-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--l-surface-2);
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.post-card-image img,
.resource-card-image img,
.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.8s ease, transform 0.8s ease;
    opacity: 1;
}

.post-card:hover .post-card-image img,
.resource-card:hover .resource-card-image img,
.featured-post:hover .featured-image img {
    filter: grayscale(0%);
    transform: scale(1.04);
}

/* Placeholder — unified */
.post-card-placeholder,
.resource-card-placeholder,
.featured-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--l-surface) 0%, var(--l-surface-2) 100%);
    font-family: var(--l-sans);
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.06);
}

.resource-card-placeholder .material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-size: 48px;
    color: rgba(255, 215, 0, 0.15);
    font-weight: 400;
}

/* External-link indicator — refined glass pill top-right of image */
.ext-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--l-border-strong);
    border-radius: 50%;
    z-index: 2;
}

.ext-badge .material-symbols-outlined {
    font-size: 14px;
    color: var(--l-gold);
}

/* Floating category badge on resource card image */
.resource-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--l-border-strong);
    border-radius: var(--l-radius-pill);
    padding: 6px 12px;
}

.resource-card-badge .list-tag,
.resource-card-badge {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--l-gold);
    background: transparent;
    border: 0;
    padding: 0;
}

.resource-card-gradient {
    display: none; /* No gradient needed — card has its own container */
}

/* --- Card body --- */
.post-card-body,
.resource-card-body {
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
}

/* --- Meta row (category + date) --- */
.post-card-meta,
.resource-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 12px;
}

/* Category label — homepage .card-v2-category spec (10px 900 UPPERCASE) */
.list-tag {
    display: inline-block;
    padding: 0;
    background: transparent;
    border: 0;
    font-family: var(--l-sans);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--l-gold);
    white-space: nowrap;
}

.list-meta-date {
    font-family: var(--l-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--l-muted-soft);
}

.list-meta-dot {
    display: inline-block;
    width: 3px;
    height: 3px;
    background: var(--l-muted-soft);
    border-radius: 50%;
    flex-shrink: 0;
}

/* --- Title (homepage .card-v2-title spec: 1.35rem, 700) --- */
.post-card-title,
.resource-card-title {
    font-family: var(--l-sans);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--l-white);
    margin: 0 0 12px;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card:hover .post-card-title,
.resource-card:hover .resource-card-title {
    color: var(--l-gold);
}

/* --- Excerpt (homepage .card-v2-excerpt spec) --- */
.post-card-excerpt,
.resource-card-desc {
    font-family: var(--l-sans);
    font-size: 0.85rem;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    color: var(--l-muted);
    margin: 0 0 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- "READ ENTRY →" CTA (homepage .card-v2-read spec) --- */
.list-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--l-sans);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--l-white);
    transition: gap 0.3s ease, color 0.3s ease;
    margin-top: auto;
}

.post-card:hover .list-read,
.resource-card:hover .list-read,
.featured-post:hover .list-read {
    gap: 16px;
    color: var(--l-gold);
}

.list-read .material-symbols-outlined {
    font-size: 18px;
}

/* Resource-card-footer simplifies — date on left, CTA on right */
.resource-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--l-border);
    margin-top: auto;
}

.resource-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--l-sans);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--l-white);
    transition: gap 0.3s ease, color 0.3s ease;
}

.resource-card:hover .resource-card-link {
    gap: 14px;
    color: var(--l-gold);
}

.resource-card-link .material-symbols-outlined {
    font-size: 16px;
}

/* ==========================================================================
   Press Row — horizontal card variant (same container aesthetics as cards)
   Thumbnail + body + arrow inside the same dark 24px-radius shell
   ========================================================================== */

.press-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-top: 0;
}

.press-row {
    display: grid;
    grid-template-columns: 144px 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 20px;
    border-radius: var(--l-radius);
}

.press-row-icon {
    width: 144px;
    aspect-ratio: 16 / 10;
    height: auto;
    border-radius: var(--l-radius-sm);
    overflow: hidden;
    background: var(--l-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: none;
    border: 0;
    transition: none;
}

.press-row-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    opacity: 1;
    transition: filter 0.7s ease, transform 0.7s ease;
}

.press-row:hover .press-row-icon img {
    filter: grayscale(0%);
    transform: scale(1.04);
}

.press-row-icon .material-symbols-outlined {
    font-size: 32px;
    color: rgba(255, 215, 0, 0.2);
}

.press-row-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.press-row-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
}

.press-row-title {
    font-family: var(--l-sans);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--l-white);
    margin: 0;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.press-row:hover .press-row-title {
    color: var(--l-gold);
}

.press-row-excerpt {
    font-family: var(--l-sans);
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--l-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.press-row-arrow {
    width: 48px;
    height: 48px;
    border: 1px solid var(--l-border-strong);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--l-white);
    background: transparent;
    transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
    flex-shrink: 0;
}

.press-row:hover .press-row-arrow {
    background: var(--l-gold);
    color: var(--l-bg);
    border-color: var(--l-gold);
    transform: translate(3px, -3px);
}

.press-row-arrow .material-symbols-outlined {
    font-size: 20px;
}

@media (max-width: 720px) {
    .press-row {
        grid-template-columns: 96px 1fr;
        gap: 20px;
        padding: 16px;
    }
    .press-row-icon { width: 96px; }
    .press-row-arrow { display: none; }
}

/* ==========================================================================
   Featured Post — large 2-col card using the same shell language
   ========================================================================== */

.featured-post {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 48px;
}

@media (min-width: 900px) {
    .featured-post {
        grid-template-columns: 1.15fr 1fr;
        align-items: stretch;
    }
    .featured-image { height: 100%; }
}

.featured-body {
    padding: 36px 36px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

.featured-title {
    font-family: var(--l-sans);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--l-white);
    margin: 0 0 14px;
    transition: color 0.3s ease;
}

.featured-post:hover .featured-title {
    color: var(--l-gold);
}

.featured-subtitle {
    font-family: var(--l-sans);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--l-muted-body);
    margin: 0 0 16px;
}

.featured-excerpt {
    font-family: var(--l-sans);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--l-muted);
    margin: 0 0 26px;
}

.read-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--l-sans);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--l-white);
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
}

.featured-post:hover .read-link {
    gap: 16px;
    color: var(--l-gold);
}

.read-link .material-symbols-outlined {
    font-size: 18px;
}

/* ==========================================================================
   Focus rings — listing-specific overrides
   ========================================================================== */

.post-card:focus-visible,
.resource-card:focus-visible,
.press-row:focus-visible,
.featured-post:focus-visible {
    outline: 2px solid var(--l-gold);
    outline-offset: 4px;
    border-color: var(--l-gold);
    border-radius: var(--l-radius);
}

.sidebar-tag:focus-visible {
    outline: 2px solid var(--l-gold);
    outline-offset: 2px;
}

.sidebar-tag.active:focus-visible {
    outline-color: var(--l-bg);
}

.pagination-link:focus-visible {
    outline: 2px solid var(--l-gold);
    outline-offset: 3px;
}

.pagination-active:focus-visible {
    outline-color: var(--l-bg);
}

/* ==========================================================================
   Empty state
   ========================================================================== */

.list-empty {
    text-align: center;
    padding: 112px 24px;
    color: var(--l-muted);
    background: var(--l-surface);
    border: 1px solid var(--l-border);
    border-radius: var(--l-radius);
}

.list-empty .material-symbols-outlined {
    font-size: 56px;
    color: rgba(255, 215, 0, 0.15);
    margin-bottom: 18px;
    display: block;
}

.list-empty p {
    font-family: var(--l-sans);
    font-size: 0.95rem;
    font-weight: 400;
    margin: 0;
}
