/* ================= cultura.css ================= */

/* --- ESTRUTURA GERAL --- */
.pop-container {
    max-width: 1200px;
    margin: 120px auto 50px auto; /* Reduzido no topo para mobile */
    padding: 0 16px; /* Ajuste sutil nas laterais para mobile */
    position: relative;
    z-index: 10;
}

/* --- TÍTULO PRINCIPAL --- */
.pop-header {
    text-align: center;
    margin-bottom: 30px; /* Reduzido no mobile */
}

.subtitle-top {
    font-family: var(--font-texto);
    font-size: 0.7rem; /* Levemente menor no mobile */
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cor-acento);
    margin-bottom: 12px;
    font-weight: 600; /* Mais peso para destacar em telas pequenas */
    display: block;
}

.pop-header h2 {
    font-family: var(--font-titulo);
    font-size: clamp(2rem, 7vw, 3.5rem); /* Tamanho fluido: cresce com a tela */
    color: var(--cor-texto);
    margin-bottom: 15px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 1px;
}

.pop-header p {
    font-family: var(--font-texto);
    color: #b0a89f;
    max-width: 700px;
    margin: 0 auto;
    font-size: clamp(0.9rem, 3vw, 1.05rem);
    line-height: 1.6;
}

.divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.4), transparent);
    margin: 30px 0;
}

/* --- FILTROS DE MÍDIA --- */
.filter-container {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap; /* Importante para o mobile */
    justify-content: center;
    gap: 10px; /* Menos espaço entre os botões no celular */
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03); /* Fundo sutil */
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: #b0a89f;
    padding: 10px 15px; /* Maior área de toque no celular */
    font-family: var(--font-texto);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    flex-grow: 1; /* Estica os botões no mobile */
    text-align: center;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--cor-acento);
    color: #111;
    border-color: var(--cor-acento);
    font-weight: 600;
}

/* --- GRID DE ARTIGOS --- */
.pop-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 coluna */
    gap: 30px;
    margin-bottom: 60px;
}

/* Classe vital para o JS (Filtros) funcionar */
.grid-card.hidden {
    display: none;
}

/* --- CARD DO ARTIGO --- */
.pop-card {
    background-color: rgba(255, 255, 255, 0.02); /* Fundo padrão do card */
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 12px; /* Espaço interno do card */
    transition: background-color 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.pop-image-wrapper {
    width: 100%;
    height: 200px; /* Altura padrão mobile */
    border-radius: 4px;
    overflow: hidden;
    background-color: #000;
    position: relative;
}

.pop-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: sepia(30%) contrast(110%) brightness(70%);
    transition: transform 0.8s ease, filter 0.6s ease;
}

/* --- CONTEÚDO DO CARD --- */
.pop-content {
    padding: 20px 10px 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tags-wrapper {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap; /* Para não quebrar no mobile */
}

.pop-tag,
.format-tag {
    background-color: transparent;
    border: 1px solid var(--cor-acento);
    color: var(--cor-acento);
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 8px;
    border-radius: 4px;
}

.format-tag {
    border-color: rgba(181, 168, 152, 0.3);
    color: #b0a89f;
}

.pop-content h4 {
    font-family: var(--font-titulo);
    color: var(--cor-texto);
    margin-bottom: 12px;
    font-size: clamp(1.3rem, 4vw, 1.6rem); /* Tamanho fluido */
    line-height: 1.3;
    font-weight: 400;
}

.pop-content p {
    color: #a39b92;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* --- TERMÔMETRO DE VERACIDADE --- */
.mito-o-metro {
    margin-bottom: 25px;
    background-color: rgba(0, 0, 0, 0.2); /* Fundo mais escuro para contraste */
    padding: 12px 15px;
    border-radius: 4px;
    border-left: 3px solid var(--cor-acento);
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-texto);
    font-size: 0.65rem; /* Menor no mobile */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #8c8273;
    margin-bottom: 8px;
    font-weight: 600;
}

.meter-labels span:last-child {
    color: var(--cor-acento);
}

.meter-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: var(--cor-acento);
    border-radius: 2px;
    transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --- LINK "LER MAIS" --- */
.read-more {
    color: var(--cor-texto);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--cor-acento);
    align-self: flex-start;
    padding-bottom: 4px;
    transition: color 0.3s ease, border-color 0.3s ease;
    margin-top: auto;
}

.read-more:hover {
    color: var(--cor-acento);
    border-color: transparent;
}

/* --- EFEITOS DE HOVER (Para telas grandes) --- */
.card-hover:hover {
    background-color: rgba(255, 255, 255, 0.04);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-color: rgba(212, 175, 55, 0.4);
}

.card-hover:hover .pop-image-wrapper img {
    transform: scale(1.05);
    filter: sepia(0%) contrast(105%) brightness(100%);
}

/* ==========================================
   TABLETS E DESKTOPS
   ========================================== */

/* 📐 TABLET (≥ 768px) */
@media (min-width: 768px) {
    .pop-container {
        padding: 0 30px;
        margin-top: 150px;
    }

    .divider {
        margin: 40px 0;
    }

    .filter-container {
        flex-wrap: nowrap; /* Desliga a quebra de linha dos botões no tablet */
        gap: 15px;
    }

    .filter-btn {
        flex-grow: 0; /* Os botões voltam ao tamanho natural */
        padding: 8px 20px;
    }

    .pop-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas */
        gap: 35px;
    }

    .pop-image-wrapper {
        height: 220px; /* Imagem mais alta */
    }
}

/* 🖥️ DESKTOP (≥ 1024px) */
@media (min-width: 1024px) {
    .pop-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 colunas padrão */
        gap: 40px;
    }

    .pop-image-wrapper {
        height: 240px;
    }
}

/* ♿ ACESSIBILIDADE */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }
}