/**
 * Category / sub-category landing hub — portal areas, price search, E-E-A-T content.
 */

.vgl-category-landing .vgl-category-hub__breadcrumb,
.vgl-category-hub .vgl-category-hub__breadcrumb {
    margin-bottom: var(--vgl-space-5);
}

.vgl-category-landing__section-title {
    margin-bottom: 0.35rem;
}

.vgl-category-landing__section-lead {
    margin: 0 0 var(--vgl-space-4);
    max-width: 42rem;
    font-size: var(--vgl-font-size-sm);
    line-height: 1.55;
}

/* Portal area cards (scoped from portal-home) */
.vgl-category-landing .vgl-portal__areas-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--vgl-space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .vgl-category-landing .vgl-portal__areas-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--vgl-space-4);
    }
}

@media (min-width: 1100px) {
    .vgl-category-landing .vgl-portal__areas-grid {
        grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    }
}

.vgl-category-landing .vgl-portal-area-card {
    display: flex;
    flex-direction: column;
    gap: var(--vgl-space-2);
    min-height: 100%;
    padding: var(--vgl-space-4);
    border: 1px solid var(--vgl-color-border);
    border-radius: var(--vgl-radius-lg, 12px);
    background: var(--vgl-color-surface);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.vgl-category-landing .vgl-portal-area-card::before {
    content: "";
    display: block;
    width: 2.5rem;
    height: 3px;
    border-radius: 999px;
    background: var(--vgl-color-primary);
    opacity: 0.85;
}

.vgl-category-landing .vgl-portal-area-card--price-comparison::before { background: #0ea5e9; }
.vgl-category-landing .vgl-portal-area-card--promotions::before { background: var(--vgl-color-accent); }
.vgl-category-landing .vgl-portal-area-card--reviews::before { background: #8b5cf6; }
.vgl-category-landing .vgl-portal-area-card--editorial::before { background: #10b981; }
.vgl-category-landing .vgl-portal-area-card--gift-ideas::before { background: #ec4899; }

.vgl-category-landing .vgl-portal-area-card:hover,
.vgl-category-landing .vgl-portal-area-card:focus {
    border-color: var(--vgl-color-primary);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
    text-decoration: none;
}

.vgl-category-landing .vgl-portal-area-card__label {
    font-size: var(--vgl-font-size-sm);
    font-weight: 700;
    line-height: 1.3;
    color: var(--vgl-color-text);
}

.vgl-category-landing .vgl-portal-area-card__count {
    font-size: var(--vgl-font-size-xs, 0.75rem);
    font-weight: 600;
    line-height: 1.35;
    color: var(--vgl-color-primary);
}

.vgl-category-landing .vgl-portal-area-card__desc {
    margin-top: auto;
    font-size: var(--vgl-font-size-xs, 0.75rem);
    line-height: 1.45;
    color: var(--vgl-color-text-muted, inherit);
}

/* Trust bar */
.vgl-category-landing__trust {
    padding: var(--vgl-space-5);
    border: 1px solid var(--vgl-color-border);
    border-radius: var(--vgl-radius-lg, 12px);
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.05), transparent 50%),
        var(--vgl-color-surface-raised, var(--vgl-color-surface));
}

.vgl-category-landing__trust-lead {
    margin: 0 0 var(--vgl-space-4);
    font-size: var(--vgl-font-size-sm);
    line-height: 1.6;
    color: var(--vgl-color-text);
}

.vgl-category-landing__trust-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--vgl-space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .vgl-category-landing__trust-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.vgl-category-landing__trust-stats li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: var(--vgl-space-3);
    border-radius: var(--vgl-radius-md, 8px);
    background: var(--vgl-color-surface);
    border: 1px solid var(--vgl-color-border);
}

.vgl-category-landing__trust-value {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--vgl-color-primary);
}

.vgl-category-landing__trust-label {
    font-size: var(--vgl-font-size-xs, 0.75rem);
    line-height: 1.35;
    color: var(--vgl-color-text-muted, inherit);
}

/* Grandchild groups */
.vgl-category-landing__grandchild-group + .vgl-category-landing__grandchild-group {
    margin-top: var(--vgl-space-6);
}

.vgl-category-landing__grandchild-parent {
    margin: 0 0 var(--vgl-space-3);
    font-size: var(--vgl-font-size-base);
    font-weight: 600;
}

.vgl-category-landing__grandchild-parent a {
    text-decoration: none;
}

.vgl-category-landing__grandchild-parent a:hover {
    text-decoration: underline;
}

/* Price comparison */
.vgl-category-landing__products-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin-bottom: var(--vgl-space-4);
}

.vgl-category-landing__products-cta {
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.vgl-category-landing__products .vgl-product-filter-toolbar {
    margin-bottom: var(--vgl-space-4);
}

.vgl-category-landing__search-results {
    margin-top: var(--vgl-space-4);
}

.vgl-category-landing .vgl-category-landing__products .promotion-view-category-wrapper {
    margin-bottom: var(--vgl-space-3);
}

/* Content section */
.vgl-category-landing__content-section .vgl-category-landing__trust {
    margin-bottom: var(--vgl-space-6);
}

.vgl-category-landing__content-prose {
    margin-bottom: var(--vgl-space-6);
    max-width: 48rem;
    font-size: var(--vgl-font-size-sm);
    line-height: 1.65;
    color: var(--vgl-color-text-muted, inherit);
}

.vgl-category-landing__content-block + .vgl-category-landing__content-block {
    margin-top: var(--vgl-space-8);
    padding-top: var(--vgl-space-6);
    border-top: 1px solid var(--vgl-color-border);
}

.vgl-category-landing__content-block-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: var(--vgl-space-4);
}

.vgl-category-landing__content-block-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.vgl-category-landing__content-block-more {
    font-size: var(--vgl-font-size-sm);
    font-weight: 600;
    text-decoration: none;
}

/* Deals */
.vgl-category-landing__promo-strip {
    margin-top: var(--vgl-space-4);
}

.vgl-category-landing__deals-more {
    margin: var(--vgl-space-4) 0 0;
    font-size: var(--vgl-font-size-sm);
    font-weight: 600;
}

.vgl-category-landing__deals-more a {
    text-decoration: none;
}

.vgl-category-landing__deals-more a:hover {
    text-decoration: underline;
}
