/* 
Theme Name: Evte News
Layout: Prime (TechDrop)
Description: Estilo moderno, limpo, com foco em cards e tipografia.
*/

/* Variáveis Locais */
:root {
    --prime-gap: 30px;
    --prime-radius: 12px;
    --prime-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --prime-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.12);
    --prime-accent: #0056b3;
    /* Fallback, será sobrescrito pelo customizer */
}

/* Container Geral */
.home-prime {
    padding-top: 40px;
    background-color: #f8f9fa;
    /* Fundo levemente cinza para destacar os cards brancos */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   1. HERO SECTION
   ========================================= */
.prime-hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Esquerda larga, Direita estreita */
    grid-template-rows: repeat(2, 1fr);
    gap: var(--prime-gap);
    margin-bottom: 60px;
    height: 500px;
    /* Altura fixa para alinhar */
}

/* Card Principal (Esquerda) */
.prime-hero .hero-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    /* Ocupa toda a altura */
    position: relative;
    border-radius: var(--prime-radius);
    overflow: hidden;
    box-shadow: var(--prime-shadow);
}

.prime-hero .hero-main .card-image-link {
    display: block;
    height: 100%;
    width: 100%;
}

.prime-hero .hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.prime-hero .hero-main:hover img {
    transform: scale(1.05);
}

/* Overlay do Card Principal */
.prime-hero .hero-main .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
    color: #fff;
    z-index: 2;
}

.prime-hero .hero-main .card-title a {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.prime-hero .hero-main .card-meta {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.prime-hero .hero-main .card-excerpt {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 15px;
    font-size: 1.1rem;
    max-width: 80%;
}

/* Cards Secundários (Direita) */
.prime-hero .hero-sub {
    position: relative;
    border-radius: var(--prime-radius);
    overflow: hidden;
    box-shadow: var(--prime-shadow);
}

.prime-hero .hero-sub img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.prime-hero .hero-sub:hover img {
    transform: scale(1.05);
}

.prime-hero .hero-sub .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
    color: #fff;
}

.prime-hero .hero-sub .card-title a {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Badge de Categoria */
.card-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--prime-accent);
    /* Será sobrescrito pelo PHP inline se necessário */
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 3;
}

/* =========================================
   2. TRENDING SECTION
   ========================================= */
.prime-trending {
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.section-title span {
    border-bottom: 2px solid var(--prime-accent);
    padding-bottom: 15px;
    position: relative;
    bottom: -2px;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.prime-mini-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.prime-mini-card:hover {
    transform: translateY(-5px);
}

.prime-mini-card .mini-img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.prime-mini-card .mini-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prime-mini-card .mini-content {
    flex-grow: 1;
}

.prime-mini-card .mini-cat {
    display: block;
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 600;
}

.prime-mini-card .mini-title {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

.prime-mini-card .mini-title a {
    color: #333;
    text-decoration: none;
}

/* =========================================
   3. MAIN GRID
   ========================================= */
.prime-main-grid {
    margin-bottom: 60px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--prime-gap);
}

.prime-standard-card {
    background: #fff;
    border-radius: var(--prime-radius);
    overflow: hidden;
    box-shadow: var(--prime-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.prime-standard-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--prime-shadow-hover);
}

.prime-standard-card .card-thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.prime-standard-card .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.prime-standard-card:hover .card-thumb img {
    transform: scale(1.1);
}

.prime-standard-card .card-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: #fff;
    color: #333;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.prime-standard-card .card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.prime-standard-card .post-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 10px;
}

.prime-standard-card .entry-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.prime-standard-card .entry-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}

.prime-standard-card .entry-title a:hover {
    color: var(--prime-accent);
}

.prime-standard-card .entry-excerpt {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.prime-standard-card .read-more {
    color: var(--prime-accent);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* =========================================
   RESPONSIVIDADE
   ========================================= */
@media (max-width: 992px) {
    .prime-hero {
        height: auto;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .prime-hero .hero-main {
        grid-column: 1;
        grid-row: auto;
        height: 400px;
    }

    .prime-hero .hero-sub {
        height: 250px;
    }

    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .prime-hero .hero-main {
        height: 300px;
    }

    .prime-hero .hero-main .card-title a {
        font-size: 1.5rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .trending-grid {
        grid-template-columns: 1fr;
    }
}