/**
 * Reportei Imprensa e Mídia — Frontend Styles
 * Design system: Inter + Quicksand, #2F64E0 primary, #212B30 dark, #F9FAFB bg
 */

/* ========================================
   Wrapper
   ======================================== */

.reportei-imprensa-wrapper {
    width: 100%;
    border-bottom: 1px solid #ECF0F1;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Hero Section
   ======================================== */

.reportei-imprensa-hero {
    background: linear-gradient(135deg, #1A3A6E 0%, #2F64E0 100%);
    padding: 64px 0;
    overflow: hidden;
}

.reportei-imprensa-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.reportei-imprensa-hero__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reportei-imprensa-hero__title {
    font-family: "Quicksand", sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.reportei-imprensa-hero__subtitle {
    font-family: "Quicksand", sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.4;
}

.reportei-imprensa-hero__description {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    line-height: 1.6;
}

.reportei-imprensa-hero__cta {
    margin-top: 8px;
}

.reportei-imprensa-wrapper .reportei-imprensa-hero__button,
.reportei-imprensa-wrapper a.reportei-imprensa-hero__button {
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 20px;
    background: #22C55E;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.reportei-imprensa-wrapper .reportei-imprensa-hero__button:hover,
.reportei-imprensa-wrapper a.reportei-imprensa-hero__button:hover {
    background: #16A34A;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.reportei-imprensa-wrapper .reportei-imprensa-hero__button:visited,
.reportei-imprensa-wrapper a.reportei-imprensa-hero__button:visited {
    color: #ffffff;
}

.reportei-imprensa-hero__image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.reportei-imprensa-hero__image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

/* ========================================
   Page Container
   ======================================== */

.reportei-imprensa-page {
    background: #F9FAFB;
    padding: 48px 0 64px;
}

.reportei-imprensa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Filter Pills
   ======================================== */

.reportei-imprensa-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 36px;
}

.reportei-imprensa-wrapper .imprensa-filter-pill,
.reportei-imprensa-wrapper button.imprensa-filter-pill {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 20px;
    border: 1px solid #E8ECF0;
    border-radius: 12px;
    background: #fff;
    color: #455A64;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.4;
    outline: none;
}

.reportei-imprensa-wrapper .imprensa-filter-pill:hover,
.reportei-imprensa-wrapper button.imprensa-filter-pill:hover {
    border-color: #2F64E0;
    color: #2F64E0;
}

.reportei-imprensa-wrapper .imprensa-filter-pill:focus-visible {
    border-color: #2F64E0;
    box-shadow: 0 0 0 2px rgba(47, 100, 224, 0.25);
}

.reportei-imprensa-wrapper .imprensa-filter-pill.active,
.reportei-imprensa-wrapper button.imprensa-filter-pill.active {
    background: #2F64E0;
    color: #fff;
    border-color: #2F64E0;
}

/* ========================================
   Grid
   ======================================== */

.reportei-imprensa-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ========================================
   Card Base
   ======================================== */

.midia-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0px 1px 2px 0px rgba(0, 68, 157, 0.04),
                0px 2px 6px 0px rgba(0, 68, 157, 0.06);
    text-decoration: none;
    color: #212B30;
    transition: all 0.22s ease;
    overflow: hidden;
    cursor: pointer;
}

.midia-card:hover {
    box-shadow: 0px 4px 8px 0px rgba(0, 68, 157, 0.08),
                0px 8px 20px 0px rgba(0, 68, 157, 0.12);
    transform: translateY(-3px);
    text-decoration: none;
    color: #212B30;
}

.midia-card:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 100, 224, 0.3);
}

/* ========================================
   Card Visual (thumbnail / screenshot)
   ======================================== */

.midia-card__visual {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #ECF0F1;
    flex-shrink: 0;
}

.midia-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.midia-card:hover .midia-card__visual img {
    transform: scale(1.03);
}

/* Placeholder (vídeos sem thumbnail) */
.midia-card__visual--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EEF3FD;
}

/* Botão de play sobre thumbnail de vídeo */
.midia-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.midia-card__play svg {
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
    transition: transform 0.2s ease;
}

.midia-card:hover .midia-card__play svg {
    transform: scale(1.1);
}

/* ========================================
   Card Header (logo + badge)
   ======================================== */

.midia-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 16px 20px 0;
}

.midia-card__veiculo {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.midia-card__logo {
    max-height: 28px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.midia-card__logo-placeholder {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: block;
    opacity: 0.6;
}

.midia-card__veiculo-nome {
    font-size: 13px;
    font-weight: 600;
    color: #455A64;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ========================================
   Card Body (título + descrição)
   ======================================== */

.midia-card__body {
    padding: 12px 20px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.midia-card__titulo {
    font-family: "Quicksand", sans-serif;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #212B30;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.midia-card__descricao {
    font-size: 14px;
    font-weight: 400;
    color: #78909C;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   Card Footer (data + CTA)
   ======================================== */

.midia-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 20px 18px;
    margin-top: auto;
}

.midia-card__data {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: #90A4AE;
}

.midia-card__cta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #2F64E0;
    white-space: nowrap;
    transition: gap 0.2s ease;
}

.midia-card__cta svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.midia-card:hover .midia-card__cta {
    gap: 8px;
}

.midia-card:hover .midia-card__cta svg {
    transform: translateX(3px);
}

/* ========================================
   Card Vídeo — destaque visual
   ======================================== */

.midia-card--video .midia-card__titulo {
    color: #1A3A6E;
}

/* ========================================
   Estado Vazio
   ======================================== */

.reportei-imprensa-empty {
    text-align: center;
    font-size: 16px;
    color: #78909C;
    padding: 48px 20px;
}

/* ========================================
   Animação de entrada
   ======================================== */

@keyframes imprensaFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.midia-card.fade-in {
    animation: imprensaFadeIn 0.3s ease forwards;
}

/* ========================================
   Responsive — Tablet landscape (≤ 1024px)
   ======================================== */

@media (max-width: 1024px) {
    .reportei-imprensa-hero {
        padding: 48px 0;
    }

    .reportei-imprensa-hero__inner {
        gap: 32px;
    }

    .reportei-imprensa-hero__title {
        font-size: 34px;
    }

    .reportei-imprensa-hero__subtitle {
        font-size: 20px;
    }

    .reportei-imprensa-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   Responsive — Tablet portrait (≤ 768px)
   ======================================== */

@media (max-width: 768px) {
    .reportei-imprensa-hero {
        padding: 40px 0;
    }

    .reportei-imprensa-hero__inner {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .reportei-imprensa-hero__content {
        align-items: center;
    }

    .reportei-imprensa-hero__title {
        font-size: 30px;
    }

    .reportei-imprensa-hero__subtitle {
        font-size: 18px;
    }

    .reportei-imprensa-hero__image img {
        max-width: 420px;
    }

    .reportei-imprensa-page {
        padding: 32px 0 48px;
    }

    .reportei-imprensa-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* ========================================
   Responsive — Mobile (≤ 580px)
   ======================================== */

@media (max-width: 580px) {
    .reportei-imprensa-hero {
        padding: 32px 0;
    }

    .reportei-imprensa-hero__title {
        font-size: 26px;
    }

    .reportei-imprensa-hero__subtitle {
        font-size: 16px;
    }

    .reportei-imprensa-hero__description {
        font-size: 14px;
    }

    .reportei-imprensa-hero__image img {
        max-width: 100%;
    }

    .reportei-imprensa-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .midia-card__header {
        padding: 14px 16px 0;
    }

    .midia-card__body {
        padding: 10px 16px 6px;
    }

    .midia-card__footer {
        padding: 0 16px 14px;
    }
}

/* Compatibilidade Astra */
.ast-container {
    flex-direction: column;
}

/* ========================================
   Page Sections
   ======================================== */

.imprensa-section {
    background: #F9FAFB;
    padding: 56px 0;
}

.imprensa-section--videos {
    background: #EEF3FD;
}


.imprensa-section__header {
    text-align: center;
    margin-bottom: 36px;
}

.imprensa-section__title {
    font-family: "Quicksand", sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #212B30;
    margin: 0 0 8px;
    line-height: 1.3;
}

.imprensa-section__subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #78909C;
    margin: 0;
    line-height: 1.5;
}


/* ========================================
   Responsive — Sections (≤ 1024px)
   ======================================== */

@media (max-width: 1024px) {
    .imprensa-section {
        padding: 48px 0;
    }
}

/* ========================================
   Responsive — Sections + Release (≤ 768px)
   ======================================== */

@media (max-width: 768px) {
    .imprensa-section {
        padding: 40px 0;
    }

    .imprensa-section__title {
        font-size: 26px;
    }

}

/* ========================================
   Responsive — Sections mobile (≤ 580px)
   ======================================== */

@media (max-width: 580px) {
    .imprensa-section {
        padding: 32px 0;
    }

    .imprensa-section__title {
        font-size: 22px;
    }

    .imprensa-section__subtitle {
        font-size: 14px;
    }
}
