/* ==============================
   CRÍTICAS – BASE
================================ */

.criticas-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 16px 64px;
}

.page-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 4vw, 2rem);
    margin-bottom: 16px;
}

/* ==============================
   GRID
================================ */

.criticas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ==============================
   CARD (IGUAL HOME)
================================ */

.card {
    background: #fff;
    border: 2px solid lightgray;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
}

.card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
}

.card .content {
    padding: 12px;
    margin: auto;
}

.card h3 {
    font-family: 'Baloo 2';
    font-size: 1.5rem;
    line-height: 1.3;
    text-align: center;
}

.rating {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.rating img {
    width: 16%;
    padding: 0.3rem;
}











/* ==============================
   FILTROS DE CRÍTICAS
================================ */

.criticas-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #f2f2f2;
    border: none;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
}

.filter-btn:hover {
    background: #e5e5e5;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: #000;
    color: #fff;
}

.criticas-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
}

/* ===== ADS ===== */
#ads-top .ad-box {
    aspect-ratio: 31 / 7;
    width: 100%;
    margin-bottom: 24px;
}

#ads-sidebar {
    position: sticky;
    top: 180px;
    height: fit-content;
}

#ads-sidebar .ad-box {
    aspect-ratio: 32 / 55;
    width: 100%;
}

/* Mobile: vira grid horizontal deslizável */
@media (max-width: 640px) {
    .criticas-filters {
        display: grid;
        grid-auto-flow: column;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .criticas-filters::-webkit-scrollbar {
        display: none;
    }
}


/* ==============================
   RESPONSIVO
================================ */

@media (max-width: 1024px) {
    .criticas-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .criticas-page {
        margin-top: 8rem;
    }

    #ads-top,
    #ads-sidebar {
        display: none;
    }
}

@media (max-width: 640px) {
    .page-title {
        font-size: 26px;
    }

    .criticas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .card h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .card h3 {
        font-size: 1rem;
    }
}