/**
 * Hot Games Styles - Unique styling for featured/hot games section
 * File: hot-games.css
 */

/* Hot Games Section Container */
.hot-games-section {
    position: relative;
    padding: 20px 0;
    margin-bottom: 24px;
}

/* Hot Games Header */
.hot-games-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 16px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    margin-bottom: 16px;
}

.hot-games-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hot-games-title .hot-icon {
    font-size: 22px;
    animation: hot-pulse 1.5s ease-in-out infinite;
}

.hot-games-title .hot-badge {
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
    color: #fff;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
}

@keyframes hot-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* See All Button */
.hot-see-all {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 999px;
    color: #d4af37;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hot-see-all:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(212, 175, 55, 0.15) 100%);
    border-color: #d4af37;
    transform: translateX(3px);
}

.hot-see-all i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.hot-see-all:hover i {
    transform: translateX(2px);
}

/* Hot Games Grid */
.hot-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 0 12px;
}

/* Hot Game Card - Unique Styling */
.hot-game-card {
    position: relative;
    background: linear-gradient(145deg, #1e2746 0%, #0a0e27 100%);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.hot-game-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #d4af37 50%, transparent 50%);
    border-radius: 0 0 0 4px;
    z-index: 5;
    pointer-events: none;
    box-shadow: -2px 2px 6px rgba(212, 175, 55, 0.25);
}

.hot-game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 50%, rgba(99, 102, 241, 0.06) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.hot-game-card:hover::before {
    opacity: 1;
}

.hot-game-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.25), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.hot-game-card:active {
    transform: scale(0.98);
}

/* Hot Game Thumbnail */
.hot-game-thumb {
    position: relative;
    aspect-ratio: 1 / 1.15;
    background: #0f1535;
    overflow: hidden;
}

.hot-game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hot-game-card:hover .hot-game-thumb img {
    transform: scale(1.08);
}

/* Black gradient shadow overlay */
.hot-game-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 40%, transparent 70%);
    opacity: 1;
    pointer-events: none;
    z-index: 2;
}

/* Win Odds Badge */
.hot-game-odds {
    display: none;
}

/* Hot Game Info — overlaid on image */
.hot-game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 8px 7px;
    z-index: 4;
    pointer-events: none;
}

.hot-game-name {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.hot-game-provider {
    display: none;
}

/* Rank Badge for Top Games */
.hot-game-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    color: #0a0e27;
    z-index: 3;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

.hot-game-rank.top-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
}

.hot-game-rank.top-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
}

.hot-game-rank.top-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #daa520 100%);
}

/* Hot Game Placeholder (No Image) */
.hot-game-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #1e2746 0%, #0a0e27 100%);
    padding: 12px;
    text-align: center;
}

.hot-game-placeholder .placeholder-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.hot-game-placeholder .placeholder-name {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
}

/* Hot Games Horizontal Scroll (for mobile) */
.hot-games-scroll {
    display: flex;
    gap: 14px;
    padding: 0 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.hot-games-scroll::-webkit-scrollbar {
    display: none;
}

.hot-games-scroll .hot-game-card {
    flex: 0 0 auto;
    width: 140px;
    scroll-snap-align: start;
}

/* Hot Games 2-Row Horizontal Scroll Grid (Home Page) */
.hot-games-grid-2row {
    display: grid;
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    grid-auto-columns: 112px;
    gap: 10px;
    padding: 0 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.hot-games-grid-2row::-webkit-scrollbar {
    display: none;
}

.hot-games-grid-2row .hot-game-card {
    width: 112px;
    scroll-snap-align: start;
}

@media (max-width: 480px) {
    .hot-games-grid-2row {
        grid-auto-columns: 88px;
        gap: 8px;
        padding: 0 12px;
    }

    .hot-games-grid-2row .hot-game-card {
        width: 88px;
    }
}

/* Category Tabs for Hot Games Page */
.hot-games-tabs {
    display: flex;
    gap: 8px;
    padding: 0 16px 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.hot-games-tabs::-webkit-scrollbar {
    display: none;
}

.hot-games-tab {
    flex: 0 0 auto;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: #888;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hot-games-tab:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    color: #d4af37;
}

.hot-games-tab.active {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.hot-games-tab .tab-count {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.hot-games-tab.active .tab-count {
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hot-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 12px;
    }
    
    .hot-games-title {
        font-size: 16px;
    }
    
    .hot-game-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

@media (max-width: 480px) {
    .hot-games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 0 12px;
    }
    
    .hot-games-header {
        padding: 0 12px 12px;
    }
    
    .hot-see-all {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .hot-game-info {
        padding: 8px 10px;
    }
    
    .hot-game-name {
        font-size: 11px;
    }
    
    .hot-game-provider {
        font-size: 9px;
    }
}

/* Loading State */
.hot-game-skeleton {
    background: linear-gradient(90deg, #1e2746 25%, #252d55 50%, #1e2746 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 12px;
    aspect-ratio: 1 / 1.15;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Compact hot game cards for home grid */
.hot-games-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;padding:0 8px}
.hot-games-grid .hot-game-card{min-width:0;border-radius:5px}
.hot-games-grid .hot-game-card::after{width:12px;height:12px}
.hot-games-grid .hot-game-thumb{aspect-ratio:1 / 1}
.hot-games-grid .hot-game-info{padding:2px 3px}
.hot-games-grid .hot-game-name{font-size:8px;line-height:1.2}
.hot-games-grid .hot-game-rank{top:2px;left:2px;width:14px;height:14px;font-size:7px}

@media (max-width:600px){
    .hot-games-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:0 8px}
}

@media (max-width:340px){
    .hot-games-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

#games-wrap .hot-games-grid,
#games-wrap .provider-grid--compact {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px;
    padding: 0 8px;
}

#games-wrap .hot-game-card,
#games-wrap .provider-grid--compact .provider-card {
    position: relative;
    min-width: 0;
    width: 100%;
    min-height: 0;
    aspect-ratio: 1 / 1.08;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 7px;
    background: linear-gradient(145deg, #1e2746 0%, #0a0e27 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#games-wrap .hot-game-card::after,
#games-wrap .provider-grid--compact .provider-card::after {
    content: '';
    position: absolute;
    top: -7px;
    right: -7px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 238, 150, 0.95) 0%, rgba(212, 175, 55, 0.55) 32%, rgba(212, 175, 55, 0) 72%);
    box-shadow: 0 0 12px rgba(255, 215, 90, 0.65);
    pointer-events: none;
    z-index: 5;
}

#games-wrap .hot-game-thumb {
    position: absolute;
    top: 9%;
    left: 15%;
    width: 70%;
    height: 62%;
    aspect-ratio: auto;
    border-radius: 6px;
    background: linear-gradient(145deg, #1e2746 0%, #0a0e27 100%);
}

#games-wrap .hot-game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#games-wrap .hot-game-thumb::after {
    display: none;
}

#games-wrap .provider-grid--compact .provider-card img {
    position: absolute;
    top: 10%;
    left: 17%;
    width: 66%;
    height: 58%;
    object-fit: contain;
    border-radius: 6px;
    background: linear-gradient(145deg, #1e2746 0%, #0a0e27 100%);
}

#games-wrap .hot-game-info,
#games-wrap .provider-grid--compact .provider-name {
    position: absolute;
    right: 5px;
    bottom: 6px;
    left: 5px;
    width: auto;
    padding: 0;
    text-align: center;
    z-index: 4;
}

#games-wrap .hot-game-name,
#games-wrap .provider-grid--compact .provider-name {
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

@media (max-width: 600px) {
    #games-wrap .hot-games-grid,
    #games-wrap .provider-grid--compact {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 340px) {
    #games-wrap .hot-games-grid,
    #games-wrap .provider-grid--compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Empty State */
.hot-games-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.hot-games-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.hot-games-empty .empty-text {
    font-size: 14px;
    font-weight: 600;
}

.home-page,
.home-page .app {
    background: #10172f;
}

.home-page .app {
    box-shadow: 0 0 36px rgba(0, 0, 0, 0.38);
}

.home-page .banner {
    width: 100%;
    height: clamp(170px, 32vw, 230px);
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

.home-page .banner-track,
.home-page .banner-track > div {
    height: 100%;
}

.home-page .banner-track > div {
    aspect-ratio: auto;
    border-radius: 0;
    background-color: #141d3a;
    background-size: cover;
    background-position: center;
}

.home-page .banner-dots {
    bottom: 7px;
    gap: 5px;
}

.home-page .banner-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.home-page .banner-dots span.active {
    width: 6px;
    border-radius: 50%;
    background: #d5ae31;
    box-shadow: 0 0 8px rgba(229, 193, 70, 0.85);
}

.home-page .announce {
    min-height: 38px;
    margin: 0;
    padding: 0 11px;
    gap: 8px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(90deg, #c59a25 0%, #e0bc48 50%, #c69b26 100%);
    color: #15182b;
    font-size: 11px;
    box-shadow: inset 0 1px rgba(255, 243, 174, 0.55), 0 5px 14px rgba(0, 0, 0, 0.25);
}

.home-page .announce .ico img,
.home-page .announce > span:last-child img {
    width: 16px !important;
    height: 16px !important;
}

.home-page .cat-tabs {
    min-height: 72px;
    gap: 4px;
    padding: 6px 8px;
    background: #202b53;
    border-bottom: 3px solid #18213f;
}

.home-page .cat-tab {
    flex: 0 0 64px;
    width: 64px;
    min-height: 60px;
    gap: 4px;
    padding: 6px 4px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #d3ae3e;
    font-size: 10px;
    font-weight: 700;
    box-shadow: none;
}

.home-page .cat-tab:hover {
    transform: none;
    border-color: transparent;
    background: rgba(76, 95, 157, 0.45);
}

.home-page .cat-tab.active {
    color: #fff;
    background: linear-gradient(145deg, #44588e, #364a7d);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.09), 0 5px 12px rgba(3, 7, 22, 0.25);
}

.home-page .cat-tab .ico,
.home-page .cat-tab .ico img {
    width: 28px;
    height: 28px;
}

.home-page .cat-tab .ico img {
    object-fit: contain;
    filter: sepia(1) saturate(1.5) hue-rotate(355deg) brightness(1.05);
}

.home-page .cat-tab.active .ico img {
    filter: brightness(0) invert(1);
}

.home-page #games-wrap {
    min-height: 220px;
    padding: 11px 4px 20px;
    background: #10172f;
}

.home-page .hot-games-section {
    margin: 0;
    padding: 0;
}

.home-page .hot-games-header,
.home-page #games-wrap > .section-head {
    min-height: 30px;
    margin: 0 3px 8px;
    padding: 0 5px 5px;
    border-bottom-color: rgba(211, 174, 62, 0.2);
}

.home-page #games-wrap .hot-games-grid,
.home-page #games-wrap .provider-grid--compact {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    padding: 0 14px;
}

.home-page #games-wrap .hot-game-card,
.home-page #games-wrap .provider-grid--compact .provider-card {
    aspect-ratio: 1 / 0.88;
    border: 1px solid rgba(91, 111, 171, 0.28);
    border-radius: 7px;
    background: linear-gradient(145deg, #2c3866 0%, #222e58 100%);
    box-shadow: 0 5px 11px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.06);
}

.home-page #games-wrap .hot-game-card::after,
.home-page #games-wrap .provider-grid--compact .provider-card::after {
    top: 0;
    right: 0;
    width: 15px;
    height: 15px;
    border-radius: 0;
    background: linear-gradient(225deg, #f0ca48 0%, #c39216 52%, transparent 53%);
    box-shadow: -2px 2px 5px rgba(218, 174, 44, 0.24);
}

.home-page #games-wrap .hot-game-thumb,
.home-page #games-wrap .provider-grid--compact .provider-card img {
    top: 10%;
    left: 20%;
    width: 60%;
    height: 54%;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    object-fit: contain;
}

.home-page #games-wrap .hot-game-thumb img {
    object-fit: contain;
}

.home-page #games-wrap .hot-game-name,
.home-page #games-wrap .provider-grid--compact .provider-name {
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-page #games-wrap .hot-game-rank {
    display: none;
}

@media (max-width: 600px) {
    .home-page .banner {
        height: clamp(170px, 45vw, 210px);
    }

    .home-page #games-wrap .hot-games-grid,
    .home-page #games-wrap .provider-grid--compact {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 11px;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .home-page #games-wrap .hot-games-grid,
    .home-page #games-wrap .provider-grid--compact {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 360px) {
    .home-page .cat-tab {
        flex-basis: 58px;
        width: 58px;
    }

    .home-page #games-wrap .hot-games-grid,
    .home-page #games-wrap .provider-grid--compact {
        gap: 9px;
        padding: 0 11px;
    }

    .home-page #games-wrap .hot-game-name,
    .home-page #games-wrap .provider-grid--compact .provider-name {
        font-size: 8px;
    }
}
