/* =========================================================
   RAM HUB
   NEWS RAM — EDITORIAL MOSAIC GALLERY
   CSS COMPLETO
   ========================================================= */

:root {
    --black: #050505;
    --black-soft: #080808;
    --black-card: #0c0c0c;
    --white: #ffffff;

    --gray: #a6a6a6;
    --gray-light: #c8c8c8;
    --gray-dark: #666666;

    --line: #202020;
    --line-soft: #181818;

    --ram-red: #8b2f1f;

    --control-height: 44px;
}

/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--black);
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;

    background: var(--black);
    color: var(--white);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    overflow-x: hidden;
}

button,
input,
select {
    font: inherit;
}

img {
    max-width: 100%;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    width: 100%;

    background: #050505;

    border-bottom: 1px solid var(--line);
}

/*
 * HEADER:
 * Logo à esquerda + News Ram ao lado.
 * Não centralizar.
 */

.header-inner {
    width: min(1400px, calc(100% - 80px));

    min-height: 150px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: flex-start;

    gap: 45px;
}

/* =========================================================
   LOGO
   ========================================================= */

.logo {
    width: 190px;
    height: 100px;

    display: block;

    object-fit: contain;

    object-position: left center;

    flex: 0 0 auto;
}

.logo-fallback {
    width: 190px;
    height: 100px;

    display: flex;

    align-items: center;
    justify-content: flex-start;

    background: transparent;

    color: #fff;

    font-size: 25px;

    font-weight: 900;

    letter-spacing: -2px;

    flex: 0 0 auto;
}

/* =========================================================
   TEXTO DO HEADER
   ========================================================= */

.header-copy {
    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 0;

    min-width: 0;

    flex: 0 0 auto;
}

.header-copy .eyebrow {
    display: none;
}

/*
 * NEWS RAM
 * Menor que a versão anterior.
 */

.header-copy h1 {
    margin: 0;

    color: #fff;

    font-size: 46px;

    line-height: 1;

    font-weight: 900;

    letter-spacing: -2.5px;

    white-space: nowrap;
}

.header-copy p {
    margin: 6px 0 0;

    color: #8e8e8e;

    font-size: 12px;

    line-height: 1.4;
}

/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: min(1400px, calc(100% - 80px));

    margin: 0 auto;

    padding: 40px 0 70px;
}

/* =========================================================
   FILTROS
   ========================================================= */

.filter-panel {
    width: 100%;

    margin-bottom: 30px;
}

.filter-heading {
    width: 100%;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    padding-bottom: 25px;

    border-bottom: 1px solid var(--line);

    gap: 20px;
}

.section-kicker {
    display: block;

    margin-bottom: 8px;

    color: #999;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 3px;

    text-transform: uppercase;
}

/*
 * SUBTÍTULO MENOR
 */

.filter-heading h2 {
    margin: 0;

    color: #fff;

    font-size: 25px;

    line-height: 1;

    letter-spacing: -1px;
}

.feed-status {
    color: #86a875;

    font-size: 11px;

    white-space: nowrap;
}

/* =========================================================
   FORMULÁRIO
   ========================================================= */

.filter-form {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        180px
        120px
        105px;

    align-items: end;

    gap: 10px;

    margin-top: 25px;
}

/* =========================================================
   CAMPOS
   ========================================================= */

.field {
    min-width: 0;
}

.field label {
    display: block;

    margin-bottom: 7px;

    color: #777;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.field input,
.field select {
    width: 100%;

    height: var(--control-height);

    padding: 0 13px;

    border: 1px solid #252525;

    border-radius: 0;

    outline: none;

    background: #0b0b0b;

    color: #fff;

    font-family: inherit;

    font-size: 12px;

    transition:
        border-color .2s ease,
        background .2s ease;
}

.field input::placeholder {
    color: #5f5f5f;
}

.field input:hover,
.field select:hover {
    border-color: #333;
}

.field input:focus,
.field select:focus {
    border-color: #555;

    background: #0e0e0e;
}

/* =========================================================
   BUSCA
   ========================================================= */

.field-search {
    min-width: 0;
}

/* =========================================================
   BOTÃO FILTRAR
   ========================================================= */

.field-button {
    display: flex;

    align-items: stretch;
}

.field-button button {
    width: 100%;

    height: var(--control-height);

    padding: 0 12px;

    border: 1px solid #fff;

    border-radius: 0;

    background: #fff;

    color: #000;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1px;

    text-transform: uppercase;

    cursor: pointer;

    white-space: nowrap;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.field-button button:hover {
    background: #ddd;

    border-color: #ddd;
}

.field-button button span {
    margin-left: 5px;

    font-size: 14px;
}

/* =========================================================
   REDE SOCIAL
   ========================================================= */

.social-filter,
.social-filters,
.social-network-filter,
.network-filter {
    width: 100%;

    margin-top: 22px;

    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 0;

    overflow: visible;
}

.social-filter > label,
.social-filters > label,
.social-network-filter > label,
.network-filter > label,
.social-filter .filter-label,
.social-filters .filter-label,
.network-filter .filter-label {
    flex: 0 0 auto;

    margin: 0 8px 0 0;

    color: #999;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;

    white-space: nowrap;
}

/* =========================================================
   BOTÕES SOCIAIS
   ========================================================= */

.social-buttons,
.social-list,
.network-list,
.social-options,
.social-filter-buttons {
    display: flex !important;

    flex-direction: row !important;

    align-items: center !important;

    justify-content: flex-start;

    flex-wrap: nowrap !important;

    gap: 8px;

    width: auto;

    max-width: 100%;

    min-width: 0;

    overflow-x: auto;

    overflow-y: hidden;

    padding: 2px 2px 5px;

    scrollbar-width: thin;
}

/* =========================================================
   BOTÃO SOCIAL
   ========================================================= */

.social-button,
.social-filter button,
.social-buttons button,
.social-list button,
.network-list button,
.social-options button,
.social-filter-buttons button {
    flex: 0 0 40px !important;

    width: 40px !important;

    min-width: 40px !important;

    max-width: 40px !important;

    height: 40px !important;

    min-height: 40px !important;

    padding: 0 !important;

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    border: 1px solid #292929 !important;

    border-radius: 50% !important;

    background: #0b0b0b !important;

    color: #fff !important;

    cursor: pointer;

    overflow: hidden;

    white-space: nowrap;

    transition:
        border-color .2s ease,
        background .2s ease,
        transform .2s ease;
}

.social-button:hover,
.social-filter button:hover,
.social-buttons button:hover,
.social-list button:hover,
.network-list button:hover,
.social-options button:hover,
.social-filter-buttons button:hover {
    border-color: #666 !important;

    background: #151515 !important;

    transform: translateY(-1px);
}

/* =========================================================
   BOTÃO TODAS
   ========================================================= */

.social-button:first-child,
.social-button.all,
.social-button[data-network="all"],
.social-filter .all,
.social-buttons .all {
    flex: 0 0 auto !important;

    width: auto !important;

    min-width: 76px !important;

    max-width: none !important;

    padding: 0 17px !important;

    border-radius: 22px !important;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1px;

    text-transform: uppercase;
}

/* =========================================================
   CORES DAS REDES
   ========================================================= */

.social-button[data-network="instagram"],
.social-button.instagram {
    color: #E1306C !important;

    border-color: #E1306C !important;
}

.social-button[data-network="tiktok"],
.social-button.tiktok {
    color: #00f2fe !important;

    border-color: #00f2fe !important;
}

.social-button[data-network="linkedin"],
.social-button.linkedin {
    color: #0A66C2 !important;

    border-color: #0A66C2 !important;
}

.social-button[data-network="youtube"],
.social-button.youtube {
    color: #FF0000 !important;

    border-color: #FF0000 !important;
}

.social-button[data-network="facebook"],
.social-button.facebook {
    color: #1877F2 !important;

    border-color: #1877F2 !important;
}

.social-button[data-network="x"],
.social-button.x {
    color: #fff !important;

    border-color: #555 !important;
}

/* =========================================================
   ATIVO
   ========================================================= */

.social-button.active,
.social-button.selected,
.social-button.is-active,
.social-filter button.active,
.social-filter button.selected,
.social-filter button.is-active {
    border-color: #fff !important;

    background: #fff !important;

    color: #050505 !important;
}

/* =========================================================
   ÍCONES
   ========================================================= */

.social-button img,
.social-button svg,
.social-filter button img,
.social-filter button svg,
.social-buttons button img,
.social-buttons button svg,
.social-list button img,
.social-list button svg,
.network-list button img,
.network-list button svg {
    width: 19px;

    height: 19px;

    display: block;

    object-fit: contain;

    flex: 0 0 auto;
}

.social-button i,
.social-button span,
.social-filter button i,
.social-filter button span {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    line-height: 1;

    white-space: nowrap;
}

/* =========================================================
   RODAPÉ DOS FILTROS
   ========================================================= */

.filter-footer {
    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 18px;

    color: #777;

    font-size: 10px;

    gap: 15px;
}

/* =========================================================
   MENSAGENS
   ========================================================= */

.message {
    width: 100%;

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 25px;

    border: 1px solid #252525;

    background: #0d0d0d;
}

.message-icon {
    width: 34px;

    height: 34px;

    flex: 0 0 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid #555;

    color: #fff;

    font-weight: 800;
}

.message strong {
    color: #fff;
}

.message p {
    margin: 5px 0 0;

    color: #888;

    font-size: 13px;
}

.message.error {
    border-color: #5b2525;
}

/* =========================================================
   GALERIA MOSAICO
   ========================================================= */

.gallery {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    grid-auto-rows: 260px;

    grid-auto-flow: dense;

    gap: 14px;

    align-items: stretch;

    min-width: 0;
}

/* =========================================================
   CARD BASE
   ========================================================= */

.post-card {
    position: relative;

    min-width: 0;

    min-height: 0;

    overflow: hidden;

    background: var(--black-card);

    border: 1px solid #1c1c1c;

    border-radius: 0;

    isolation: isolate;

    transition:
        border-color .2s ease,
        transform .2s ease;
}

.post-card:hover {
    border-color: #3a3a3a;
}

/* =========================================================
   CARD NORMAL
   ========================================================= */

.post-card {
    grid-column: span 1;

    grid-row: span 1;
}

/* =========================================================
   CARD GRANDE / TALL
   ========================================================= */

.post-card.featured,
.post-card.tall {
    grid-column: span 1;

    grid-row: span 2;
}

/* =========================================================
   MOSAICO AUTOMÁTICO
   ========================================================= */

.post-card:nth-child(6n) {
    grid-column: span 1;

    grid-row: span 2;
}

.post-card:nth-child(12n + 11) {
    grid-column: span 2;

    grid-row: span 1;
}

.post-card.featured,
.post-card.tall {
    grid-column: span 1;

    grid-row: span 2;
}

/* =========================================================
   MEDIA
   ========================================================= */

.post-media {
    position: relative;

    width: 100%;

    height: 100%;

    overflow: hidden !important;

    background: #000;
}

.post-media img,
.post-media video {
    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

    transition:
        transform .5s ease,
        filter .5s ease;
}

.post-card:hover .post-media img,
.post-card:hover .post-media video {
    transform: scale(1.035);
}

/* =========================================================
   PLACEHOLDER
   ========================================================= */

.image-placeholder {
    position: absolute;

    inset: 0;

    display: none;

    align-items: center;

    justify-content: center;

    background:
        radial-gradient(
            circle at center,
            #242424 0,
            #0c0c0c 70%
        );

    color: #444;

    font-size: 35px;

    font-weight: 900;

    letter-spacing: -2px;
}

.image-placeholder.show {
    display: flex;
}

/* =========================================================
   MÁSCARA
   ========================================================= */

.media-overlay {
    position: absolute;

    inset: 0;

    z-index: 2;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,.30) 0%,
            transparent 25%,
            transparent 50%,
            rgba(0,0,0,.55) 75%,
            rgba(0,0,0,.92) 100%
        ),
        radial-gradient(
            circle at center,
            transparent 60%,
            rgba(0,0,0,.45) 100%
        );

    pointer-events: none;
}

/* =========================================================
   TOPO DO CARD
   ========================================================= */

.post-top {
    position: absolute;

    top: 14px;

    left: 14px;

    right: 14px;

    z-index: 5;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.ram-badge {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 38px;

    height: 24px;

    padding: 0 8px;

    background: #fff;

    color: #000;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: .5px;
}

.featured-label {
    color: #fff;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.5px;
}

/* =========================================================
   CONTEÚDO DO CARD
   ========================================================= */

.post-content {
    position: absolute;

    left: 16px;

    right: 16px;

    bottom: 16px;

    z-index: 4;
}

.post-date {
    margin-bottom: 5px;

    color: rgba(255,255,255,.7);

    font-size: 9px;

    line-height: 1.2;

    font-weight: 600;
}

/* =========================================================
   TÍTULO DO CARD
   ========================================================= */

.post-title {
    margin: 0;

    color: #fff;

    font-size: 15px;

    line-height: 1.12;

    font-weight: 750;

    letter-spacing: -.2px;

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 2;

    overflow: hidden;

    text-shadow:
        0 2px 8px rgba(0,0,0,.9);
}

/* =========================================================
   TÍTULO CARD GRANDE
   ========================================================= */

.post-card.featured .post-title,
.post-card.tall .post-title {
    font-size: 17px;

    line-height: 1.08;

    letter-spacing: -.3px;

    -webkit-line-clamp: 3;
}

/* =========================================================
   AUTOR
   ========================================================= */

.post-author {
    margin-top: 6px;

    color: rgba(255,255,255,.75);

    font-size: 9px;

    line-height: 1.2;

    font-weight: 600;

    letter-spacing: .15px;
}

/* =========================================================
   LINK
   ========================================================= */

.post-link {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-top: 9px;

    color: #fff;

    font-size: 8px;

    font-weight: 900;

    letter-spacing: 1.1px;

    text-transform: uppercase;

    text-decoration: none;
}

.post-link span {
    font-size: 13px;

    line-height: 1;
}

.post-link:hover {
    text-decoration: underline;
}

/* =========================================================
   IFRAMES
   ========================================================= */

.post-media iframe {
    position: absolute !important;

    inset: 0 !important;

    width: 100% !important;

    height: 100% !important;

    border: none !important;

    background: transparent !important;

    pointer-events: auto !important;

    display: block !important;
}

/* =========================================================
   INSTAGRAM
   ========================================================= */

.post-media iframe[src*="instagram.com"] {
    top: -45px !important;

    left: -10px !important;

    width: calc(100% + 20px) !important;

    height: calc(100% + 90px) !important;

    transform: none !important;
}

/* =========================================================
   TIKTOK
   ========================================================= */

.post-media iframe[src*="tiktok.com"] {
    top: 0 !important;

    left: 0 !important;

    width: 100% !important;

    height: 100% !important;

    transform: scale(1.02);

    transform-origin: center center;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    width: 100%;

    border-top: 1px solid #202020;

    padding: 25px 0;

    background: #050505;

    color: #666;

    text-align: center;

    font-size: 10px;

    letter-spacing: .5px;
}

.site-footer span {
    margin: 0 6px;

    color: #333;
}

/* =========================================================
   RESPONSIVO — 1100px
   ========================================================= */

@media (max-width: 1100px) {

    .header-inner,
    .container {
        width: min(100% - 40px, 1000px);
    }

    .header-inner {
        gap: 32px;
    }

    .logo {
        width: 165px;
        height: 90px;
    }

    .header-copy h1 {
        font-size: 40px;
    }

    .filter-form {
        grid-template-columns:
            minmax(0, 1fr)
            160px
            120px
            100px;
    }

    .gallery {
        grid-auto-rows: 220px;

        gap: 12px;
    }

    .post-card.featured .post-title,
    .post-card.tall .post-title {
        font-size: 16px;
    }
}

/* =========================================================
   RESPONSIVO — 800px
   ========================================================= */

@media (max-width: 800px) {

    .header-inner {
        width: calc(100% - 40px);

        min-height: 120px;

        gap: 22px;
    }

    .logo {
        width: 125px;

        height: 70px;
    }

    .header-copy h1 {
        font-size: 34px;

        letter-spacing: -2px;
    }

    .header-copy p {
        font-size: 11px;
    }

    .container {
        width: calc(100% - 28px);

        padding-top: 28px;
    }

    .filter-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 12px;
    }

    .filter-heading h2 {
        font-size: 23px;
    }

    .filter-form {
        grid-template-columns:
            minmax(0, 1fr)
            160px;
    }

    .field-search {
        grid-column: 1 / -1;
    }

    .field-button {
        grid-column: 1 / -1;

        width: 150px;

        justify-self: start;
    }

    .social-filter,
    .social-filters,
    .social-network-filter,
    .network-filter {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }

    .social-buttons,
    .social-list,
    .network-list,
    .social-options,
    .social-filter-buttons {
        width: 100%;

        overflow-x: auto;

        flex-wrap: nowrap !important;
    }

    .filter-footer {
        align-items: flex-start;

        flex-direction: column;

        gap: 7px;
    }

    /* =====================================================
       MOSAICO TABLET
       ===================================================== */

    .gallery {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        grid-auto-rows: 240px;

        gap: 12px;

        grid-auto-flow: dense;
    }

    .post-card {
        grid-column: span 1;

        grid-row: span 1;
    }

    .post-card.featured,
    .post-card.tall,
    .post-card:nth-child(6n) {
        grid-column: span 1;

        grid-row: span 2;
    }

    .post-card:nth-child(12n + 11) {
        grid-column: span 2;

        grid-row: span 1;
    }

    .post-title {
        font-size: 14px;
    }

    .post-card.featured .post-title,
    .post-card.tall .post-title {
        font-size: 16px;
    }
}

/* =========================================================
   RESPONSIVO — 520px
   ========================================================= */

@media (max-width: 520px) {

    .header-inner {
        width: calc(100% - 28px);

        min-height: 100px;

        gap: 16px;
    }

    .logo {
        width: 90px;

        height: 55px;
    }

    .header-copy h1 {
        font-size: 28px;

        letter-spacing: -1.5px;
    }

    .header-copy p {
        font-size: 10px;
    }

    .container {
        width: calc(100% - 20px);
    }

    .filter-heading h2 {
        font-size: 21px;
    }

    .filter-form {
        grid-template-columns: 1fr;
    }

    .field-search {
        grid-column: auto;
    }

    .field-button {
        grid-column: auto;

        width: 100%;
    }

    .social-filter,
    .social-filters,
    .social-network-filter,
    .network-filter {
        width: 100%;
    }

    .social-buttons,
    .social-list,
    .network-list,
    .social-options,
    .social-filter-buttons {
        width: 100%;

        gap: 7px;

        overflow-x: auto;

        flex-wrap: nowrap !important;
    }

    .social-button,
    .social-filter button,
    .social-buttons button,
    .social-list button,
    .network-list button,
    .social-options button,
    .social-filter-buttons button {
        flex: 0 0 38px !important;

        width: 38px !important;

        min-width: 38px !important;

        max-width: 38px !important;

        height: 38px !important;

        min-height: 38px !important;
    }

    .social-button.all,
    .social-button[data-network="all"],
    .social-filter .all,
    .social-buttons .all {
        flex: 0 0 auto !important;

        width: auto !important;

        min-width: 70px !important;

        max-width: none !important;
    }

    /* =====================================================
       CELULAR
       ===================================================== */

    .gallery {
        grid-template-columns: 1fr;

        grid-auto-rows: 300px;

        gap: 12px;
    }

    .post-card,
    .post-card.featured,
    .post-card.tall,
    .post-card:nth-child(6n),
    .post-card:nth-child(12n + 11) {
        grid-column: span 1;

        grid-row: span 1;
    }

    .post-card.featured .post-title,
    .post-card.tall .post-title,
    .post-title {
        font-size: 16px;

        -webkit-line-clamp: 2;
    }
}