/*
Theme Name: Astra Hot Child - Grupos Telegram +18
Description: Totalmente responsivo · Perfeito no celular · Nunca mais vaza nada
Template: astra
Version: 2.2.0
*/

@import url("../astra/style.css");

/* ========================================
   RESET GERAL + FUNDO ESCURO
   ======================================== */
body { 
    background:#0f0f0f; 
    color:#fff; 
    font-family:'Roboto',sans-serif; 
    margin:0; 
    padding:0;
    overflow-x:hidden !important;
}
.home .ast-container, .site-content { 
    max-width:100% !important; 
    padding:0 !important; 
    margin:0 !important;
}

/* ========================================
   GRID PRINCIPAL – PERFEITO NO CELULAR
   ======================================== */
.hot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    padding: 25px 12px;
    max-width: 1500px;
    margin: 0 auto;
}

/* CARD COMPACTO E BONITO */
.hot-card {
    background: #1a1a1a;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.7);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.hot-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 18px 40px rgba(0,0,0,0.9); 
}
.hot-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}
.hot-card-content { 
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.hot-card h2 { 
    font-size: 1.35rem;
    font-weight: 900;
    margin: 0 0 8px;
    line-height: 1.2;
}
.hot-card h2 a { color:#fff; text-decoration:none; }
.hot-card h2 a:hover { color:#FFD700; }

.hot-card .categoria {
    padding: 6px 12px;
    font-size: 0.82rem;
    margin-bottom: 10px;
    display: inline-block;
    background: #0066cc;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
}
.hot-card p { 
    font-size: 0.95rem; 
    line-height: 1.45; 
    margin: 0 0 14px; 
    opacity: 0.9; 
    flex-grow: 1;
}
.hot-card .btn-entrar {
    padding: 12px;
    font-size: 1rem;
    border-radius: 8px;
    background: #0066cc;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
}
.hot-card .btn-entrar:hover { 
    background: #0055aa; 
}

/* ========================================
   RESPONSIVO – TABLET E CELULAR
   ======================================== */
@media (max-width: 1024px) {
    .hot-grid { 
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 18px;
        padding: 20px 10px;
    }
    .hot-card img { height: 150px; }
}

@media (max-width: 768px) {
    .hot-grid {
        grid-template-columns: 1fr 1fr !important; /* 2 colunas no tablet pequeno */
        gap: 14px;
        padding: 15px 8px;
    }
    .hot-card img { height: 140px; }
    .hot-card h2 { font-size: 1.15rem; }
    .hot-card-content { padding: 12px; }
}

@media (max-width: 480px) {
    .hot-grid {
        grid-template-columns: 1fr 1fr !important; /* 2 colunas no celular */
        gap: 12px;
        padding: 12px 6px !important;
    }
    .hot-card img { height: 120px; }
    .hot-card h2 { 
        font-size: 1rem !important; 
        line-height: 1.2;
    }
    .hot-card .categoria { 
        font-size: 0.75rem !important; 
        padding: 5px 10px !important; 
    }
    .hot-card p { 
        font-size: 0.85rem !important; 
        margin-bottom: 10px !important;
    }
    .hot-card .btn-entrar {
        padding: 10px !important;
        font-size: 0.9rem !important;
    }
}

/* Celular em pé (landscape curto) */
@media (max-width: 480px) and (orientation: landscape) {
    .hot-grid {
        gap: 10px;
        padding: 10px 5px;
    }
    .hot-card img { height: 90px !important; }
    .hot-card h2 { font-size: 0.85rem !important; }
    .hot-card p { display: none !important; } /* esconde texto longo */
    .hot-card .btn-entrar { padding: 8px !important; font-size: 0.8rem !important; }
}

/* ========================================
   PAGINAÇÃO FINAL – NUNCA MAIS VAI VAZAR
   ======================================== */
.hot-pagination {
    padding: 30px 0;
    overflow: hidden;
}
.hot-pagination ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    background: #111 !important;
    border-radius: 50px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6) !important;
    padding: 8px 0 !important;
    margin: 0 10px !important;
    max-width: calc(100vw - 20px) !important;
    scrollbar-width: none;
}
.hot-pagination ul::-webkit-scrollbar { display: none !important; }

.hot-pagination a,
.hot-pagination span {
    padding: 12px 16px !important;
    color: #fff !important;
    font-weight: bold !important;
    font-size: 1rem !important;
    min-width: 44px !important;
    text-align: center !important;
    white-space: nowrap !important;
}
.hot-pagination a:hover,
.hot-pagination .current {
    background: #0066cc !important;
}

/* ========================================
   CABEÇALHOS (category.php, author.php)
   ======================================== */
header[style*="background"] h1 {
    font-size: 2.2rem !important;
}
header[style*="background"] p {
    font-size: 1.1rem !important;
}
@media (max-width: 480px) {
    header[style*="background"] {
        padding: 40px 15px !important;
    }
    header[style*="background"] h1 { font-size: 1.9rem !important; }
}

/* ========================================
   GARANTIA FINAL – NUNCA MAIS ROLAGEM LATERAL
   ======================================== */
* { box-sizing: border-box; }
html, body { width: 100%; overflow-x: hidden; }