/* populares.php - Jogos Populares - Layout igual referência */

body.populares-page {
    background: #1a1a1a !important;
}

/* Espaço para header fixo - seção colada logo abaixo */
body.populares-page .main-content {
    padding-top: 88px !important; /* 44px header + 44px menu */
    margin-top: 0 !important;
    background: #1a1a1a !important;
}

/* Grandes Vitórias Recentes */
.populares-top-wins {
    padding: 12px 15px !important;
    margin-bottom: 0 !important;
}

.new-last-wins-games-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.new-last-wins-games-title b {
    width: 6px;
    height: 6px;
    background: #99ff00;
    border-radius: 50%;
    flex-shrink: 0;
}

.new-last-wins-games-title p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

/* Lista vertical - igual referência (itens empilhados) */
.new-last-wins-games-container {
    overflow: hidden;
    max-height: 168px;
}

.new-last-wins-games-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

.new-last-wins-games-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.new-last-wins-games-item:last-child {
    border-bottom: none;
}

.new-last-wins-games-item .game-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.game-icon-placeholder {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
}

.new-last-wins-games-item > div {
    flex: 1;
    min-width: 0;
}

.new-last-wins-games-item .userName {
    font-size: 13px;
    color: #fff;
    margin: 0 0 2px 0;
}

.new-last-wins-games-item .game-name {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.new-last-wins-games-item .amount {
    font-size: 13px;
    font-weight: 600;
    color: #99ff00;
    flex-shrink: 0;
}

/* Filtros - Categorias e Provedores */
.populares-filters {
    padding: 0 15px 12px !important;
}

.horizontal-sl-list-container {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.horizontal-sl-list {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    flex-wrap: nowrap;
}

.horizontal-sl-item-bc {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.horizontal-sl-item-bc i {
    font-size: 16px;
}

.horizontal-sl-item-bc .horizontal-sl-title-bc {
    margin: 0;
}

.horizontal-sl-item-bc:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.horizontal-sl-item-bc.active {
    background: rgba(153,255,0,0.2);
    border-color: #99ff00;
    color: #99ff00;
}

.populares-providers-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.populares-providers-row::-webkit-scrollbar {
    display: none;
}

.newCasinoContainer {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    flex: 1;
    min-width: 0;
}

.newCasino_item {
    flex-shrink: 0;
    padding: 8px 14px;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    cursor: pointer;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    transition: all 0.2s;
    border: 1px solid transparent;
}

.newCasino_item:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.newCasino_item.active {
    background: rgba(153,255,0,0.2);
    border-color: #99ff00;
    color: #99ff00;
}

/* Grid de jogos - somente imagens, 3 colunas mobile */
.populares-games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 15px;
}

.game-card-popular {
    cursor: pointer;
}

.casino-game-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.casino-game-item-image-bc {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.casino-game-item-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(255,255,255,0.08);
}

.casino-game-item-fav-bc {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    opacity: 0.8;
}

.game-card-popular:hover .casino-game-item-image-bc {
    transform: scale(1.03);
}

.casino-game-item-image-bc {
    transition: transform 0.2s ease;
}

/* Footer compacto */
.populares-footer-social {
    padding: 20px 15px !important;
}

.populares-footer-legal {
    padding: 15px !important;
}

.populares-footer-legal .register-section p {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* Desktop */
@media (min-width: 769px) {
    .populares-games-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 16px;
        padding: 20px 30px;
    }
}

@media (min-width: 1024px) {
    .populares-games-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}
