/* ============================================================
   IMPORTANTE:
   Este CSS NÃO mexe mais em body, html, header, footer,
   #app-sidebar ou #app-topbar. O layout global continua mandando.
============================================================ */

.hq-mestre,
.hq-mestre * {
    box-sizing: border-box;
}

.hq-mestre {
    width: 100%;
    max-width: 1640px;
    margin: 0 auto;
    padding: 22px 36px 60px;
    position: relative;
    z-index: 1;
}

.hq-section-title {
    color: #ffffff;
    font-size: clamp(20px, 2vw, 30px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin: 8px 0 22px;
    text-align: left;
}

.hq-section-title strong {
    color: #cc66ff;
}

.hq-empty-message {
    color: #bdb7cc;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 22px;
    margin: 20px 0;
    font-size: 15px;
    font-weight: 700;
}

/* ============================================================
   BANNER DA HOME — DIRETO NO CÓDIGO
   PC: 1600x300  |  Mobile: 900x390
   A imagem preenche sem deformar. Se a proporção bater, não corta.
============================================================ */
.home-promo-banner-container {
    width: 100%;
    max-width: 1600px;
    aspect-ratio: 1600 / 300;
    margin: 0 auto 26px;
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 45px rgba(0,0,0,0.35);
}

.home-banner-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}

.home-banner-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.55s ease;
    will-change: transform;
}

.home-banner-item {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: 100%;
    display: block;
}

.home-banner-item a,
.home-banner-item picture {
    display: block;
    width: 100%;
    height: 100%;
}

.home-banner-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border: 0;
}

.home-banner-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    pointer-events: auto;
    z-index: 5;
}

.home-banner-dot {
    width: 7px;
    height: 7px;
    min-width: 7px;
    min-height: 7px;
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(255,255,255,0.38);
    transition: width 0.25s ease, background 0.25s ease;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
}

.home-banner-dot:hover,
.home-banner-dot:focus-visible {
    background: rgba(255,255,255,0.82);
    outline: 2px solid rgba(255,255,255,0.75);
    outline-offset: 3px;
}

.home-banner-dot.active {
    width: 22px;
    background: #cc66ff;
}

.home-promo-banner-container.is-dragging,
.home-promo-banner-container.is-dragging * {
    cursor: grabbing !important;
}

.home-promo-banner-container.is-dragging .home-banner-wrapper {
    transition: none;
}

/* ============================================================
   GRADE ANTIGA — MANTIDA PARA ARQUIVOS/CATEGORIAS SE EXISTIREM
============================================================ */
.hq-grid-container {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    padding: 0;
    margin: 0 0 42px;
}

.hq-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    box-shadow: 0 8px 22px rgba(0,0,0,0.28);
}

.hq-card:hover {
    transform: translateY(-5px);
    border-color: rgba(204,102,255,0.45);
    box-shadow: 0 16px 38px rgba(0,0,0,0.48);
}

.hq-cover {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}

.hq-overlay {
    position: static;
    width: 100%;
    background: rgba(255,255,255,0.06);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 12px 10px;
    text-align: center;
}

.hq-title {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   GRADE DA HOME — SEM ETIQUETAS, SOMENTE CAPA + NOME EMBAIXO
============================================================ */
.hq-grid-home {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.hq-card-home {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 26px rgba(0,0,0,0.32);
    text-decoration: none !important;
    color: #fff !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
    -webkit-tap-highlight-color: transparent;
}

.hq-card-home:hover {
    transform: translateY(-6px);
    border-color: rgba(204,102,255,0.50);
    background: rgba(255,255,255,0.07);
    box-shadow: 0 18px 46px rgba(0,0,0,0.54), 0 0 24px rgba(204,102,255,0.10);
}

.hq-cover-wrap-home {
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: #100b18;
    position: relative;
}

.hq-cover-home {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.001);
    transition: transform 0.28s ease, filter 0.28s ease;
}

.hq-card-home:hover .hq-cover-home {
    transform: scale(1.045);
    filter: brightness(1.08);
}

.hq-info-home {
    width: 100%;
    min-height: 58px;
    padding: 12px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(9,6,15,0.88);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.hq-title-home {
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
    text-decoration: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* GARANTIA: nenhuma etiqueta/badge adicionada por versões anteriores aparece */
.hq-card-home .hq-badge,
.hq-card-home .hq-tag,
.hq-card-home .hq-label,
.hq-card-home .hq-meta,
.hq-card-home .hq-card-tags,
.hq-card-home .hq-categoria,
.hq-card-home .hq-etiqueta {
    display: none !important;
}

.hq-paginacao {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 34px 0 0;
    padding: 0;
}

.hq-paginacao a,
.hq-paginacao span {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    background: rgba(255,255,255,0.06);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    border: 1px solid rgba(255,255,255,0.10);
    transition: 0.2s ease;
}

.hq-paginacao span.current,
.hq-paginacao a:hover {
    background: #cc66ff;
    border-color: #cc66ff;
    color: #fff;
    box-shadow: 0 8px 22px rgba(204,102,255,0.24);
}

.pacote-vip-movido {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed rgba(255,255,255,0.12);
}

.pacote-vip-movido h3,
.pacote-vip-movido p {
    display: none !important;
}

@media (max-width: 1500px) {
    .hq-grid-home,
    .hq-grid-container {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .hq-mestre {
        padding: 20px 24px 54px;
    }

    .hq-grid-home,
    .hq-grid-container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }
}


/* BANNER MOBILE — usa a imagem mobile cadastrada no banner.
   Formato final: 900x390. Altura mobile aumentada em 50%. */
@media (max-width: 900px) {
    .home-promo-banner-container {
        max-width: 900px;
        aspect-ratio: 900 / 390;
    }

    .home-banner-item img {
        object-fit: cover;
        object-position: center center;
    }
}

@media (max-width: 850px) {
    .hq-mestre {
        padding: 16px 14px 44px;
    }

    .hq-grid-home,
    .hq-grid-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .home-promo-banner-container,
    .home-banner-viewport {
        border-radius: 16px;
    }
}

@media (max-width: 600px) {
    .hq-mestre {
        padding: 12px 10px 38px;
    }

    .hq-grid-home,
    .hq-grid-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .hq-info-home {
        min-height: 52px;
        padding: 10px 8px;
    }

    .hq-title-home,
    .hq-title {
        font-size: 13px;
    }

    .home-promo-banner-container,
    .home-banner-viewport {
        border-radius: 14px;
        margin-bottom: 18px;
    }
}
