/* ============================================
   TRENDING.CSS - Seção Em Alta
   Central de Notícias Brasil
   Desenvolvido por: Joceilton Gomes
   ============================================ */

/* ====== SEÇÃO EM ALTA ====== */
.trending-section {
    background: #fff;
    padding: 40px 0;
}

.trending-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.trending-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.trending-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 8px;
}

.trending-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: #dc2626;
    border-radius: 2px;
}

.trending-btn {
    background: #dc2626;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.trending-btn:hover {
    background: #b91c1c;
}

/* Grid Principal */
.trending-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 24px;
    margin-bottom: 0;
}

/* Notícia Grande (Esquerda) */
.trending-big {
    grid-row: span 1;
}

.trending-big a {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

.trending-big img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.trending-big:hover img {
    transform: scale(1.03);
}

.trending-big-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    padding: 80px 20px 20px;
}

.trending-big-overlay h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    line-height: 1.4;
}

/* Coluna Central */
.trending-center {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trending-medium {
    flex: 1;
}

.trending-medium a {
    display: flex;
    gap: 16px;
    text-decoration: none;
    height: 100%;
}

.trending-medium img {
    width: 200px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.trending-medium:hover img {
    transform: scale(1.03);
}

.trending-medium-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    padding-top: 4px;
}

.trending-medium-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--azul-primario);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-medium:hover h3 {
    color: var(--azul-claro);
}

.trending-tag {
    font-size: 0.75rem;
    color: #64748b;
}

/* Coluna Direita */
.trending-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trending-small-img {
    flex: 1;
}

.trending-small-img a {
    display: flex;
    gap: 14px;
    text-decoration: none;
    height: 100%;
}

.trending-small-img img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.trending-small-img:hover img {
    transform: scale(1.03);
}

.trending-small-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    padding-top: 4px;
}

.trending-category {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.trending-small-content h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--azul-claro);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-small-img:hover h3 {
    color: var(--azul-primario);
}

/* Linha de Notícias de Texto - 4 Cards Iguais */
.trending-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 32px 0;
    margin-top: 32px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
}

.trending-text-only {
    background: transparent;
}

.trending-text-only a {
    display: block;
    text-decoration: none;
}

.trending-text-only .trending-category {
    display: block;
    margin-bottom: 10px;
    font-size: 0.7rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.trending-text-only h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #2563eb;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.trending-text-only:hover h3 {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ====== RESPONSIVO ====== */
@media (max-width: 1200px) {
    .trending-grid {
        grid-template-columns: 1fr 1fr;
    }

    .trending-big {
        grid-row: span 1;
    }

    .trending-big img {
        min-height: 280px;
    }

    .trending-right {
        grid-column: span 2;
        flex-direction: row;
    }

    .trending-row {
        grid-template-columns: repeat(2, 1fr);
        margin-left: -24px;
        margin-right: -24px;
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 768px) {
    .trending-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .trending-grid {
        grid-template-columns: 1fr;
    }

    .trending-big img {
        min-height: 220px;
    }

    .trending-center,
    .trending-right {
        flex-direction: column;
    }

    .trending-right {
        grid-column: span 1;
    }

    .trending-medium img {
        width: 140px;
        height: 100px;
    }

    .trending-row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }
}

