/* =====================================================
   NOTÍCIAS — grid editorial de novidades (TMDB + IGDB)
   ===================================================== */

.news-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 36px 80px;
}

.news-header {
    margin-bottom: 28px;
}

.news-kicker {
    color: #c8a84b;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-header h1 {
    font-family: 'DM Serif Display', 'Outfit', serif;
    font-size: 2.6rem;
    font-weight: 400;
    line-height: 1.05;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.news-header h1 i {
    color: #c8a84b;
    font-size: 1.8rem;
}

.news-header p {
    color: rgba(226, 230, 240, 0.6);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* === FILTROS === */
.news-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.news-filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(226, 230, 240, 0.7);
    padding: 9px 16px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s;
}

.news-filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.22);
    color: #e2e6f0;
}

.news-filter-btn.active {
    background: #c8a84b;
    color: #1a1305;
    border-color: #c8a84b;
    font-weight: 600;
}

/* === CATEGORIA (sub-section) === */
.news-section {
    margin-bottom: 44px;
}
.news-section:last-child {
    margin-bottom: 0;
}

.news-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.news-section-title h2 {
    font-family: 'DM Serif Display', 'Outfit', serif;
    font-weight: 400;
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-section-title h2 i {
    color: #c8a84b;
    font-size: 1.15rem;
}

.news-section-title .count {
    color: rgba(226, 230, 240, 0.45);
    font-size: 0.86rem;
}

/* === GRID DE CARDS === */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.news-card {
    background: #10141d;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: rgba(200, 168, 75, 0.4);
}

.news-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #1a1a2a center / cover no-repeat;
    overflow: hidden;
}

.news-card-image img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, filter 0.2s ease;
}

.news-card:hover .news-card-image.has-image img {
    transform: scale(1.045);
    filter: brightness(0.86) saturate(1.08);
}

.news-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
    z-index: 1;
}

.news-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: #c8a84b;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    z-index: 3;
}
.news-badge.movie { color: #60a5fa; }
.news-badge.tv    { color: #c084fc; }
.news-badge.game  { color: #4ade80; }
.news-badge.book  { color: #fb923c; }
.news-badge.music { color: #f472b6; }

.news-card-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.18);
    font-size: 3.4rem;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.news-card-image.has-image .news-card-icon {
    opacity: 0;
    transform: scale(0.92);
}

.news-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: #e2e6f0;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 4px;
    z-index: 3;
}
.news-rating i {
    color: #c8a84b;
    margin-right: 4px;
    font-size: 0.7rem;
}

.news-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.news-card-cat {
    color: #c8a84b;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
}

.news-card-title {
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
    color: #e2e6f0;
}

.news-card-desc {
    color: rgba(226, 230, 240, 0.6);
    font-size: 0.86rem;
    line-height: 1.5;
    flex: 1;
    /* clamp pra 3 linhas */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(226, 230, 240, 0.4);
    font-size: 0.78rem;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.news-card-foot .arrow {
    color: #c8a84b;
}

/* === ESTADOS === */
.news-loading,
.news-empty {
    text-align: center;
    padding: 80px 20px;
    color: rgba(226, 230, 240, 0.5);
    font-size: 0.94rem;
}
.news-loading i {
    font-size: 1.6rem;
    color: #c8a84b;
    margin-bottom: 14px;
    display: block;
}

/* === RESPONSIVO === */
@media (max-width: 720px) {
    .news-main { padding: 28px 18px 60px; }
    .news-header h1 { font-size: 2rem; }
    .news-grid { grid-template-columns: 1fr; }
}


/* Tema claro: texto editorial fora da imagem de capa. */
:is(html.light-theme-early, body.light-theme) :is(.news-card, .news-card-body) { background: var(--surface, #fff); border-color: var(--border, rgba(30,41,59,.14)); }
:is(html.light-theme-early, body.light-theme) .news-card-title { color: #1e293b; }
:is(html.light-theme-early, body.light-theme) :is(.news-card-desc, .news-loading, .news-empty) { color: #526070; }
:is(html.light-theme-early, body.light-theme) .news-filter-btn { color: #526070; border-color: rgba(30,41,59,.22); }
:is(html.light-theme-early, body.light-theme) .news-filter-btn:hover { color: #1e293b; background: #ece9e2; }
:is(html.light-theme-early, body.light-theme) .news-filter-btn.active { color: #17130a; background: #c8a84b; border-color: #c8a84b; }
:is(html.light-theme-early, body.light-theme) :is(.news-header p, .news-section-title .count, .news-card-foot) { color: #526070; }
:is(html.light-theme-early, body.light-theme) :is(.news-kicker, .news-header h1 i, .news-section-title h2 i, .news-card-cat, .news-card-foot .arrow, .news-loading i) { color: #806117; }
:is(html.light-theme-early, body.light-theme) :is(.news-section-title, .news-card-foot) { border-color: rgba(30,41,59,.14); }
