/* =========================================
   Arquivo: filex/css/explorar.css
   XONA â€” EXPLORAR
   Requer main.css + postagem.css carregados antes.
   NOTA: a aparÃªncia dos posts Ã© 100% do postagem.css
   ========================================= */

/* =========================================
   BODY â€” sem sidebar direita atÃ© 1200px
   ========================================= */
@media (max-width: 1200px) {
    body.explore-body .main-content {
        margin-right: 0 !important;
        max-width: none !important;
    }
}

.explore-page {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-bottom: 24px;
}

/* =========================================
   HEADER DA PÃGINA
   ========================================= */
.explore-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.explore-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
}
.explore-header .section-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 0;
}

/* =========================================
   SECÃ‡Ã•ES
   ========================================= */
.section-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.featured-section,
.explore-posts-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* =========================================
   CRIADORES EM DESTAQUE â€” carrossel
   ========================================= */
.featured-carousel {
    position: relative;
    width: 100%;
}

.featured-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 2px 2px 4px;

    /* esconder scrollbar sem desativar o scroll */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.featured-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.featured-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: var(--shadow-card);
    transition: all 0.2s ease;
    font-size: 13px;
    display: none;
}
.featured-arrow:hover {
    background: var(--accent-pink);
    color: #fff;
    border-color: var(--accent-pink);
}
.featured-arrow-prev { left: -14px; }
.featured-arrow-next { right: -14px; }

/* Empty state do carrossel */
.featured-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 13px;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
}
.featured-empty i { font-size: 22px; }

/* =========================================
   CARD DE CRIADOR â€” compacto
   ========================================= */
.featured-card {
    flex: 0 0 116px;
    width: 116px;
    min-width: 116px;
    height: 168px;

    display: flex;
    flex-direction: column;
    align-items: center;

    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 9px;

    padding: 10px 8px 9px;
    box-sizing: border-box;
    overflow: hidden;

    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease;
}
.featured-card:hover {
    border-color: var(--accent-pink);
    transform: translateY(-2px);
}

.featured-avatar {
    width: 76px;
    height: 76px;
    min-width: 76px;
    min-height: 76px;

    border-radius: 50%;
    object-fit: cover;
    display: block;

    border: 2px solid var(--border-color);
    background: var(--bg-dark);
    flex-shrink: 0;
}

.featured-body {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 7px 0 0;
    gap: 3px;

    min-width: 0;
}

.featured-name {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;

    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;

    color: var(--text-primary);

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-name .verified-badge {
    font-size: 11px;
    color: var(--accent-pink);
    flex-shrink: 0;
}

.featured-followers {
    width: 100%;

    text-align: center;

    font-size: 10px;
    line-height: 1.2;

    color: var(--text-secondary);

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-body .btn-follow {
    width: 100%;

    margin-top: 5px;
    padding: 7px 4px;

    border: 0;
    border-radius: 6px;

    background: var(--accent-pink);
    color: #fff;

    font-family: inherit;
    font-size: 11px;
    font-weight: 600;

    line-height: 1;

    cursor: pointer;
    white-space: nowrap;
    transition: filter .2s ease;
}
.featured-body .btn-follow:hover {
    filter: brightness(1.08);
}
.featured-body .btn-follow.following {
    background: transparent;
    border: 1px solid var(--accent-pink);
    color: var(--accent-pink);
}

/* =========================================
   PUBLICAÃ‡Ã•ES PARA DESCOBRIR
   (SÃ“ o container â€” o estilo do post Ã© do postagem.css)
   ========================================= */
.explore-posts-section {
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.explore-posts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.explore-posts-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Filtros (Tudo / VÃ­deos / Imagens) */
.explore-posts-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: #30363d transparent;
}
.explore-posts-filters::-webkit-scrollbar { height: 4px; }
.explore-posts-filters::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 999px;
}

.filter-pill {
    flex-shrink: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.filter-pill:hover {
    border-color: var(--accent-pink);
    color: var(--accent-pink);
}
.filter-pill.active {
    background-color: var(--accent-pink);
    border-color: var(--accent-pink);
    color: #fff;
}

/* Container do feed â€” 1 post por baixo do outro */
.explore-posts-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    /* max-width: 680px; */
    margin: 0 auto;
}

/* =========================================
   RESPONSIVO â€” MOBILE (â‰¤ 768px)
   ========================================= */
@media (max-width: 768px) {

    body.explore-body .main-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
    }

    .explore-page {
        padding: 0 10px 130px;
        gap: 18px;
    }

    .explore-header h1 { font-size: 22px; }
    .explore-header .section-subtitle { font-size: 12px; }

    /* Carrossel */
    .featured-arrow { display: none !important; }

    .featured-scroll { padding: 2px 2px 4px; gap: 9px; }

    .featured-card {
        flex: 0 0 108px;
        width: 108px;
        min-width: 108px;
        height: 158px;

        padding: 9px 7px 8px;
    }

    .featured-avatar {
        width: 70px;
        height: 70px;
        min-width: 70px;
        min-height: 70px;
    }

    .featured-name {
        font-size: 11px;
    }

    .featured-followers {
        font-size: 9px;
    }

    .featured-body .btn-follow {
        font-size: 10px;
        padding: 7px 3px;
    }

    /* Header de publicaÃ§Ãµes */
    .explore-posts-section {
        gap: 12px;
        padding-top: 8px;
    }

    .explore-posts-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .explore-posts-header h2 { font-size: 16px; }

    /* Filtros */
    .explore-posts-filters { padding-bottom: 6px; gap: 6px; }
    .filter-pill { font-size: 12.5px; padding: 7px 14px; }

    /* Feed */
    .explore-posts-feed {
        gap: 14px;
        max-width: 100%;
    }
}