/* categorie.css - Stili specifici pagina categorie */

/* ===== PAGE HERO ===== */
.page-hero {
    text-align: center;
    padding: 28px 0 28px;
}

.page-hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 12px;
}

.hero-subtitle {
    color: var(--gray-500);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0;
    letter-spacing: -0.01em;
}

.hero-subtitle strong {
    color: var(--gray-700);
    font-weight: 600;
}

/* ===== MAIN CONTAINER ===== */
main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px;
}

/* ===== FILTERS BAR ===== */
.filters-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--white);
    padding: 5px;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

.filter-tabs {
    display: flex;
    gap: 2px;
    position: relative;
}

.filter-slider {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--blue-500);
    border-radius: 10px;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.15, 1),
                width 0.4s cubic-bezier(0.4, 0, 0.15, 1);
    z-index: 0;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.filter-tab {
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-500);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.25s;
    font-family: inherit;
    position: relative;
    z-index: 1;
}

.filter-tab:hover {
    color: var(--gray-900);
}

.filter-tab.active {
    color: var(--white);
    font-weight: 600;
}

.filter-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 8px;
}

.filter-sort label {
    font-size: 0.8125rem;
    color: var(--gray-400);
}

/* ===== CUSTOM SELECT ===== */
.custom-select {
    position: relative;
    user-select: none;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: none;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-family: inherit;
    background: transparent;
    color: var(--gray-900);
    cursor: pointer;
    transition: background-color 0.15s;
    white-space: nowrap;
}

.custom-select-trigger:hover {
    background: var(--gray-50);
}

.custom-select.open .custom-select-trigger {
    background: var(--gray-50);
}

.custom-select-trigger svg {
    width: 14px;
    height: 14px;
    fill: var(--gray-400);
    transition: transform 0.25s ease;
}

.custom-select.open .custom-select-trigger svg {
    transform: rotate(180deg);
}

.custom-select-trigger:focus-visible {
    outline: 2px solid var(--blue-500);
    outline-offset: 2px;
    border-radius: 10px;
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 6px;
    min-width: 170px;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.custom-select.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.8125rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: background-color 0.12s, color 0.12s;
}

.custom-option:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.custom-option:focus {
    background: var(--gray-50);
    color: var(--gray-900);
    outline: 2px solid var(--blue-500);
    outline-offset: -2px;
}

.custom-option.selected {
    color: var(--blue-500);
    font-weight: 600;
    background: rgba(59, 130, 246, 0.08);
}

/* ===== ACTIVE FILTERS FEEDBACK ===== */
.active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-bottom: 0;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease,
                margin-bottom 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.active-filters.visible {
    max-height: 50px;
    opacity: 1;
    margin-bottom: 20px;
}

.af-label {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-weight: 500;
    white-space: nowrap;
}

.active-filters-tags {
    display: flex;
    align-items: center;
    gap: 5px;
}

.af-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    background: rgba(59, 130, 246, 0.07);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--blue-600);
    white-space: nowrap;
}

.af-tag svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

.af-tag[data-color="rev"] {
    background: #dbeafe;
    color: #1e40af;
}

.af-tag[data-color="gui"] {
    background: #dcfce7;
    color: #16a34a;
}

.af-tag[data-color="conf"] {
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
}

.af-tag[data-color="news"] {
    background: var(--gray-100);
    color: var(--gray-600);
}

.af-tag[data-color="spec"] {
    background: rgba(20, 184, 166, 0.12);
    color: #0f766e;
}

/* Presentazioni: mai cablata prima (bottone, typeLabels e colore mancavano — 8 set) */
.af-tag[data-color="pres"] {
    background: rgba(20, 184, 166, 0.12);
    color: #0f766e;
}

.af-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--gray-300);
    flex-shrink: 0;
}

.af-count {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
    white-space: nowrap;
    padding-left: 2px;
}

.af-count strong {
    font-weight: 700;
    color: var(--gray-800);
    font-variant-numeric: tabular-nums;
}

.af-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
    flex-shrink: 0;
    padding: 0;
}

.af-reset:hover {
    border-color: var(--red-500);
    background: rgba(239, 68, 68, 0.06);
}

.af-reset svg {
    width: 10px;
    height: 10px;
    color: var(--gray-600);
    transition: color 0.15s;
}

.af-reset:hover svg {
    color: var(--red-500);
}

/* ===== FEATURED CAROUSEL ===== */
.featured-carousel {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 0;
    background: var(--white);
}

.featured-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.15, 1);
    will-change: transform;
}

.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    width: 100%;
    min-width: 100%;
    flex: 0 0 100%;
    text-decoration: none;
    color: inherit;
    opacity: 0.4;
    transition: opacity 0.5s ease;
}

.featured.active-slide {
    opacity: 1;
}

.featured:hover .ft-title {
    color: var(--blue-500);
}

.ft-img {
    height: 280px;
    background: var(--white);   /* era gradiente grigio: ora bianco = cornice "incastonata" (come hero) */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Copertina incastonata: immagine inset 10px, angoli 16px, niente ombra — stessa ricetta di .hero-product-img (commit c614d2d) */
.ft-img > img {
    position: absolute;
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    object-fit: cover;
    border-radius: 16px;
    box-shadow: none;
    z-index: 1;
}

/* Solo nel carosello: senza copertina il placeholder riempie il riquadro col fondo grigio (la card-grid resta invariata) */
.ft-img .ft-img-placeholder {
    position: absolute;
    inset: 0;
    z-index: 1;
    justify-content: center;
    background: linear-gradient(145deg, var(--gray-100) 0%, var(--gray-200) 100%);
}

.ft-img-placeholder {
    color: var(--gray-300);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ft-img-placeholder svg {
    width: 40px;
    height: 40px;
    opacity: 0.4;
}

.ft-badge {
    position: absolute;
    top: 20px;      /* = 10px dentro l'immagine incastonata (inset 10px): badge tucked nell'angolo arrotondato, come .article-type-badge dell'hero */
    left: 20px;
    z-index: 2;   /* sopra l'immagine/placeholder incastonati (che sono z-index:1) */
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #dbeafe;
    color: #1e40af;
}

.ft-badge.t-gui {
    background: #dcfce7;
    color: #16a34a;
}

.ft-badge.t-conf {
    background: #e0e7ff;
    color: #4f46e5;
}

.ft-badge.t-news {
    background: #e0f2fe;
    color: #0369a1;
}

.ft-badge.t-spec {
    background: #ccfbf1;
    color: #0f766e;
}

.ft-badge.t-pres {
    background: #ccfbf1;
    color: #0f766e;
}

.ft-body {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.ft-cat {
    font-size: 0.6875rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    margin-bottom: 8px;
}

.ft-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
    transition: color 0.15s;
}

.ft-excerpt {
    color: var(--gray-500);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.ft-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8125rem;
    color: var(--gray-400);
    flex-wrap: wrap;
}

.ft-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ft-meta .meta-icon {
    width: 15px;
    height: 15px;
    color: var(--gray-400);
}

/* Carousel arrows */
.fc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: opacity 0.2s, border-color 0.2s, box-shadow 0.2s;
    opacity: 0;
}

.featured-carousel:hover .fc-arrow {
    opacity: 1;
}

.fc-arrow:hover {
    border-color: var(--blue-500);
    box-shadow: var(--shadow-lg);
}

.fc-arrow svg {
    width: 18px;
    height: 18px;
    fill: var(--gray-600);
    transition: fill 0.15s;
}

.fc-arrow:hover svg {
    fill: var(--blue-500);
}

.fc-prev {
    left: 14px;
}

.fc-next {
    right: 14px;
}

/* Carousel footer: dots + progress */
.fc-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 0 0;
    margin-bottom: 24px;
}

.fc-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.fc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gray-300);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: width 0.3s ease, border-radius 0.3s ease, background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.fc-dot.active {
    width: 28px;
    border-radius: 4px;
    background: var(--gray-200);
}

.fc-dot-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    background: var(--blue-500);
    border-radius: 4px;
    transition: none;
    transform: scaleX(0);
    transform-origin: left;
}

.fc-dot.active .fc-dot-fill {
    animation: dotProgress var(--carousel-speed, 5s) linear forwards;
}

.featured-carousel.paused .fc-dot.active .fc-dot-fill {
    animation-play-state: paused;
}

@keyframes dotProgress {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* ===== MAIN COLUMN ===== */
.main-col {
    min-width: 0;
}

/* ===== ARTICLES GRID ===== */
.grid-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.grid-header h2 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.grid-count {
    font-size: 0.8125rem;
    color: var(--gray-400);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 32px;
}

.card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    transition-delay: 0s;
}

.card:hover .card-title {
    color: var(--blue-500);
}

/* Filter transition */
.card.filter-out {
    opacity: 0;
    transform: scale(0.97);
    pointer-events: none;
}

.card.hidden {
    display: none;
}

/* Card image */
.card-img {
    aspect-ratio: 16 / 9;   /* = sorgente card-thumb 400x225: niente ri-taglio, niente effetto panorama; rapporto costante a ogni larghezza */
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Copertina incastonata (stessa ricetta di hero/carosello), scalata per la card: immagine inset 6px, angoli 12px, niente ombra */
.card-img > img {
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    object-fit: cover;
    border-radius: 12px;
    box-shadow: none;
    z-index: 1;
}

/* Senza copertina: il placeholder riempie il riquadro col fondo grigio (la cornice bianca si vede solo con la foto) */
.card-img .ft-img-placeholder {
    position: absolute;
    inset: 0;
    z-index: 1;
    justify-content: center;
    background: linear-gradient(145deg, var(--gray-100) 0%, var(--gray-200) 100%);
}

.card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28, 25, 23, 0.03), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.card:hover .card-img::after {
    opacity: 1;
}

/* Placeholder/image zoom */
.card-img > *:not(.card-type):not(.card-score):not(.ft-badge) {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* zoom hover rimosso 15 giu: l'immagine cresceva oltre i 6px inset e rompeva la cornice incastonata. Hover resta vivo via lift + velo ::after */

/* Badge lift on hover */
.card-type {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease;
    z-index: 2;
}

.card:hover .card-type {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Badge type colors — card grid */
.card-type.t-rev { background: #dbeafe; color: #1e40af; }
.card-type.t-gui { background: #dcfce7; color: #16a34a; }
.card-type.t-conf { background: #e0e7ff; color: #4f46e5; }
.card-type.t-news { background: #e0f2fe; color: #0369a1; }
.card-type.t-spec { background: #ccfbf1; color: #0f766e; }
.card-type.t-pres { background: #ccfbf1; color: #0f766e; }

/* Card score badge */
.card-score {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    background: var(--white);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.card-score .score-ring-svg {
    width: 32px;
    height: 32px;
    display: block;
}

.card-score .score-value {
    font-size: 0.625rem;
    font-weight: 800;
    fill: var(--gray-900);
}

/* Score ring inline (HTML original structure) */
.card-score-ring {
    position: relative;
    width: 32px;
    height: 32px;
}

.card-score-ring svg {
    width: 32px;
    height: 32px;
    display: block;
}

.card-score-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.03em;
}

.card-body {
    padding: 11px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-cat {
    font-size: 0.5625rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    margin-bottom: 3px;
}

.card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
}

.card-meta {
    display: flex;
    gap: 12px;
    color: var(--gray-400);
    font-size: 0.6875rem;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-icon {
    width: 14px;
    height: 14px;
    color: var(--gray-400);
    flex-shrink: 0;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.pg-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-900);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pg-btn:hover:not(.disabled) {
    border-color: var(--blue-500);
    color: var(--blue-500);
}

.pg-btn:focus-visible {
    outline: 2px solid var(--blue-500);
    outline-offset: 2px;
}

.pg-btn.active {
    background: var(--blue-500);
    border-color: var(--blue-500);
    color: var(--white);
}

.pg-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.pg-dots {
    color: var(--gray-400);
    padding: 0 4px;
    font-size: 0.875rem;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sb-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.sb-title {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

/* Category pills sidebar */
.cat-list {
    display: flex;
    flex-direction: column;
    gap: 0px;
    position: relative;
}

.cat-pill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: #dbeafe;
    border-radius: 10px;
    transition: top 0.35s cubic-bezier(0.4, 0, 0.15, 1),
                height 0.35s cubic-bezier(0.4, 0, 0.15, 1),
                width 0.35s cubic-bezier(0.4, 0, 0.15, 1);
    z-index: 0;
}

.cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--gray-600);
    transition: color 0.2s;
    position: relative;
    z-index: 1;
}

.cat-item:hover {
    color: var(--gray-900);
}

.cat-item.active {
    color: #1e40af;
    font-weight: 500;
}

.cat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.cat-icon svg {
    width: 20px;
    height: 20px;
}

.cat-item.active .cat-icon {
    background: rgba(255, 255, 255, 0.7);
}

.cat-name {
    font-size: 0.8125rem;
    font-weight: 500;
}

/* Trending sidebar items */
.trend-list {
    display: flex;
    flex-direction: column;
}

.trend-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s, color 0.15s;
}

.trend-item:first-child {
    padding-top: 0;
}

.trend-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.trend-item:hover .trend-title {
    color: var(--blue-500);
}

.trend-item:hover .trend-rank {
    opacity: 0.5;
}

.trend-rank {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--blue-500);
    opacity: 0.2;
    width: 22px;
    flex-shrink: 0;
    line-height: 1.3;
    transition: opacity 0.15s;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}

.trend-title {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
    transition: color 0.15s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trend-views {
    font-size: 0.6875rem;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 4px;
}

.trend-views svg {
    width: 13px;
    height: 13px;
    color: var(--gray-400);
}

/* ===== NEWSLETTER SECTION (fuori main) ===== */
.newsletter-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px 32px;
}

/* ===== NEWSLETTER ACCENT OVERRIDE ===== */
.nl-icon {
    color: var(--blue-500);
}

.nl-banner::before {
    background: var(--blue-500);
}

.nl-input:focus {
    border-color: var(--blue-500);
}

.nl-btn {
    background: var(--blue-500);
}

.nl-btn:hover {
    background: var(--blue-600);
}

/* ===== MOBILE CATEGORY PILLS ===== */
.mobile-cats {
    display: none;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 0 16px;
    margin-bottom: 8px;
}

.mobile-cats::-webkit-scrollbar {
    display: none;
}

.mobile-cat {
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-500);
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile-cat svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.mobile-cat:hover {
    border-color: var(--gray-300);
    color: var(--gray-700);
}

.mobile-cat.active {
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--blue-500);
    color: var(--blue-600);
    font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    main {
        padding: 20px;
    }

    .page-hero h1 {
        font-size: 1.875rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
    }

    .filters-bar {
        flex-direction: column;
        align-items: stretch;
        border-radius: var(--radius-sm);
        padding: 10px;
        position: relative;
    }

    .filters-bar::after {
        content: '';
        position: absolute;
        top: 10px;
        right: 10px;
        width: 40px;
        height: 44px;
        background: linear-gradient(to right, transparent, var(--white));
        pointer-events: none;
        z-index: 2;
        border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
        transition: opacity 0.2s;
    }

    .filters-bar.scrolled-end::after {
        opacity: 0;
    }

    .filter-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .filter-sort {
        padding: 8px 4px 4px;
        justify-content: center;
    }

    .featured {
        grid-template-columns: 1fr;
    }

    .ft-img {
        height: 180px;
    }

    .ft-body {
        padding: 20px;
    }

    .ft-title {
        font-size: 1.25rem;
    }

    .ft-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .fc-arrow {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        opacity: 1;
    }

    .fc-arrow svg {
        width: 15px;
        height: 15px;
    }

    .fc-prev {
        left: 10px;
    }

    .fc-next {
        right: 10px;
    }

    .filter-tab {
        padding: 10px 14px;
        font-size: 0.75rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .mobile-cats {
        display: flex;
    }

    .sidebar .sb-card:first-child {
        display: none;
    }
}
