/* Hero – Ultra-compact bar (matches approved mockup) */

.sn-hero {
    background: var(--sn-hero-bg);
    position: relative;
    border-bottom: 1px solid var(--sn-border);
}

/* Subtle gradient accent line at the very top */
.sn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--sn-gradient);
}

.sn-hero .sn-container {
    position: relative;
    z-index: 1;
}

/* ── Breadcrumb ── */
.sn-breadcrumb {
    padding: 10px 0 0;
    font-size: 0.75rem;
    color: var(--sn-text-muted);
}

.sn-breadcrumb a {
    color: var(--sn-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.sn-breadcrumb a:hover {
    color: var(--sn-primary);
}

.sn-breadcrumb__sep {
    margin: 0 5px;
    opacity: 0.4;
}

.sn-breadcrumb__current {
    color: var(--sn-text-muted);
}

/* Variant for the gradient archive hero, where the background is dark. */
.sn-breadcrumb--on-dark {
    color: rgba(255, 255, 255, 0.65);
}

.sn-breadcrumb--on-dark a,
.sn-breadcrumb--on-dark .sn-breadcrumb__current {
    color: rgba(255, 255, 255, 0.8);
}

.sn-breadcrumb--on-dark a:hover {
    color: #fff;
}

/* ── Main heading row — logo, title, meta inline ── */
.sn-hero__content {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 0 18px;
}

/* ── Hero thumbnail ── */
.sn-hero__thumbnail {
    flex-shrink: 0;
    /* Sized to the text column beside it. At 120px the artwork stood a head
       taller than the title and meta together, so the row read as a picture
       with a caption floating in the middle of it. */
    width: 96px;
    height: 96px;
    border-radius: 14px;
    background: linear-gradient(145deg, #7C3AED 0%, #EC4899 50%, #F59E0B 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sn-shadow-sm);
    overflow: hidden;
}

.sn-hero__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.sn-hero__thumbnail-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    font-size: 0.5rem;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
}

.sn-hero__thumbnail-placeholder svg {
    opacity: 0.7;
}

/* ── Info column ── */
.sn-hero__info {
    flex: 1;
    min-width: 0;
}

/* Top line: title + provider */
.sn-hero__top-line {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.sn-hero__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--sn-text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
    white-space: nowrap;
    margin: 0;
}

.sn-hero__provider-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--sn-primary-soft);
    border: 1px solid rgba(91,108,255,0.12);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--sn-primary);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.sn-hero__provider-badge svg,
.sn-hero__provider-badge img {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ── Bottom line: quick stats inline ── */
.sn-hero__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 7px;
    flex-wrap: wrap;
}

.sn-hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--sn-text-secondary);
    white-space: nowrap;
}

/* These four numbers are why the page exists; --sn-text-muted sits at 2.6:1
   on white, which fails AA and made the labels the faintest thing in the
   hero. Secondary clears 4.5:1 and still reads as a label. */
.sn-hero__meta-label {
    font-weight: 500;
    color: var(--sn-text-secondary);
}

.sn-hero__meta-value {
    font-weight: 700;
    color: var(--sn-text-primary);
}

.sn-hero__meta-value--accent {
    color: var(--sn-accent);
}

.sn-hero__meta-sep {
    color: var(--sn-border);
    font-size: 0.625rem;
    user-select: none;
}

/* ── "Ask AI" CTA — pushed to the far end of the hero row ── */
.sn-hero__ask-ai {
    flex-shrink: 0;
    margin-left: auto;
    white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .sn-hero__title {
        font-size: 1.375rem;
    }
}

@media (max-width: 768px) {
    .sn-hero__content {
        gap: 12px;
        flex-wrap: wrap;
    }

    .sn-hero__ask-ai {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .sn-hero__thumbnail {
        width: 96px;
        height: 96px;
        border-radius: 12px;
    }

    .sn-hero__title {
        font-size: 1.25rem;
    }

    .sn-hero__top-line {
        gap: 8px;
    }

    .sn-hero__meta {
        gap: 4px;
    }

    .sn-hero__meta-item {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .sn-hero__title {
        font-size: 1.125rem;
    }

    .sn-hero__thumbnail {
        width: 80px;
        height: 80px;
    }

    .sn-hero__meta-item {
        font-size: 0.6875rem;
    }
}
