/*
Theme Name: Portal
Author: OVZ
Author URI: https://ovz.com.br/
Description: Template inicial
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

    :root {
        --amarelo: #f7b107;
        --escuro: #111827;
        --fundo: #f4f6f8;
        --borda: #e5e7eb;
        --texto: #1f2937;
        --muted: #6b7280;
    }

    body {
        background: var(--fundo);
        font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        color: var(--texto);
        padding-bottom: 92px;
    }

    .topo {
        background: #fff;
        border-bottom: 1px solid var(--borda);
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .logo {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        background: var(--amarelo);
        color: var(--escuro);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 900;
    }

    .hero-compacto,
    .busca-box {
        background: #fff;
        border-bottom: 1px solid var(--borda);
    }

    .busca-box {
        position: sticky;
        top: 63px;
        z-index: 999;
    }

    .form-control,
    .form-select {
        border-radius: 14px;
        border-color: var(--borda);
        padding: 11px 14px;
        font-size: 15px;
    }

    .btn-publicar {
        background: var(--amarelo);
        color: var(--escuro);
        font-weight: 800;
        border: none;
        border-radius: 14px;
    }

    .categoria-chip {
        border: 1px solid var(--borda);
        background: #fff;
        border-radius: 999px;
        padding: 8px 14px;
        font-size: 14px;
        white-space: nowrap;
        cursor: pointer;
    }

    .categoria-chip.active {
        background: var(--escuro);
        color: #fff;
        border-color: var(--escuro);
    }

    .feed {
        max-width: 620px;
        margin: 0 auto;
    }

    .post-card,
    .ad-banner {
        background: #fff;
        border: 1px solid var(--borda);
        border-radius: 22px;
        padding: 16px;
        margin-bottom: 16px;
    }

    .post-card.destacado {
        box-shadow: 0 0 0 4px rgba(247, 177, 7, .45);
    }

    .post-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;
    }

    .avatar {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: #fef3c7;
        color: #92400e;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 900;
        flex-shrink: 0;
    }

    .badge-cat {
        background: #fef3c7;
        color: #92400e;
        border-radius: 999px;
        padding: 6px 11px;
        font-size: 12px;
        font-weight: 800;
    }

    .post-title {
        font-weight: 900;
        font-size: 1.1rem;
        margin: 10px 0 6px;
    }

    .post-texto {
        font-size: 15.5px;
        line-height: 1.55;
        margin-bottom: 10px;
    }

    .post-meta {
        color: var(--muted);
        font-size: 13px;
    }

    .post-actions {
        display: flex;
        gap: 8px;
        margin-top: 14px;
        flex-wrap: wrap;
    }

    .post-actions .btn {
        border-radius: 14px;
        font-weight: 700;
    }

    .post-img-unica {
        width: 100%;
        height: 310px;
        object-fit: cover;
        border-radius: 18px;
        margin: 12px 0;
        background: #e5e7eb;
    }

    .galeria-grid {
        display: grid;
        gap: 6px;
        margin: 12px 0;
        grid-template-columns: repeat(2, 1fr);
    }

    .galeria-grid img {
        width: 100%;
        height: 165px;
        object-fit: cover;
        border-radius: 14px;
        background: #e5e7eb;
    }

    .imagem-lightbox {
        cursor: zoom-in;
    }

    #modalLightbox .carousel-item img {
        width: 100%;
        max-height: 85vh;
        object-fit: contain;
        border-radius: 18px;
    }

    .ad-banner {
        border-style: dashed;
        text-align: center;
        background: linear-gradient(135deg, #fff, #fff8df);
    }

    .ad-banner small {
        color: var(--muted);
        display: block;
        margin-bottom: 6px;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .5px;
        font-weight: 800;
    }

    .editor-toolbar {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        border: 1px solid var(--borda);
        border-bottom: 0;
        padding: 8px;
        border-radius: 14px 14px 0 0;
        background: #f9fafb;
    }

    .editor-toolbar button {
        border: 1px solid var(--borda);
        background: #fff;
        border-radius: 10px;
        width: 38px;
        height: 34px;
    }

    .editor-area {
        border: 1px solid var(--borda);
        min-height: 150px;
        padding: 12px;
        border-radius: 0 0 14px 14px;
        outline: none;
        background: #fff;
    }

    .dias-opcao {
        border: 1px solid var(--borda);
        border-radius: 14px;
        padding: 10px 12px;
        cursor: pointer;
        background: #fff;
        text-align: center;
        font-weight: 800;
    }

    .dias-opcao input {
        display: none;
    }

    .dias-opcao:has(input:checked) {
        background: var(--escuro);
        color: #fff;
        border-color: var(--escuro);
    }

    .preview-imagens {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
        margin-top: 10px;
    }

    .preview-imagens img {
        width: 100%;
        height: 65px;
        object-fit: cover;
        border-radius: 10px;
    }

    .barra-anuncio-bottom {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 74px;
        background: #111827;
        z-index: 1300;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border-top: 3px solid var(--amarelo);
    }

    .anuncio-bottom-item {
        position: absolute;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity .5s ease, transform .5s ease;
        width: 100%;
        max-width: 760px;
        padding: 0 14px;
    }

    .anuncio-bottom-item.active {
        opacity: 1;
        transform: translateY(0);
    }

    .anuncio-bottom-card {
        height: 56px;
        border-radius: 16px;
        background: linear-gradient(135deg, #f7b107, #ffcf4d);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 14px;
        color: #111827;
        font-weight: 900;
    }

    .anuncio-bottom-card img {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        object-fit: cover;
        background: #fff;
    }

    .bottom-publicar {
        position: fixed;
        bottom: 88px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1200;
        box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
    }

    .carregando-feed {
        max-width: 620px;
        margin: 0 auto 20px;
        text-align: center;
        color: var(--muted);
        font-size: 14px;
    }

    .modal {
        z-index: 3000;
    }

    .modal-backdrop {
        z-index: 2990;
    }

    body.modal-open .barra-anuncio-bottom,
    body.modal-open .bottom-publicar {
        display: none !important;
    }

    .modal-dialog {
        max-height: calc(100vh - 32px);
    }

    .modal-content {
        max-height: calc(100vh - 32px);
        overflow: hidden;
    }

    .modal-body {
        overflow-y: auto;
    }

    @media (max-width: 768px) {
        .busca-box {
            top: 61px;
        }

        .post-card,
        .ad-banner {
            border-radius: 0;
            border-left: 0;
            border-right: 0;
        }

        .container-mobile {
            padding-left: 0;
            padding-right: 0;
        }

        .feed {
            max-width: 100%;
        }

        .post-img-unica {
            height: 260px;
            border-radius: 14px;
        }

        .galeria-grid img {
            height: 130px;
        }

        .preview-imagens {
            grid-template-columns: repeat(3, 1fr);
        }

        .anuncio-bottom-card {
            font-size: 13px;
        }
    }
.barra-anuncio-bottom:empty{display:none!important;}
