/* ===============================
   HOT GAMES PAGE STYLES
   =============================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(232, 199, 66, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #888888;
}

.page-breadcrumb a {
    color: #e8c742;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-breadcrumb a:hover {
    color: #f4d03f;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #555555;
}

.breadcrumb-current {
    color: #cccccc;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, #e8c742, #f4d03f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-title-icon {
    font-size: 3.5rem;
    animation: fire 2s infinite alternate;
}

@keyframes fire {
    0% { transform: scale(1) rotate(-2deg); }
    100% { transform: scale(1.1) rotate(2deg); }
}

.page-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto;
}

/* Hot Stats Section */
.hot-stats {
    padding: 3rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(232, 199, 66, 0.3);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(232, 199, 66, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: #e8c742;
    box-shadow: 0 10px 30px rgba(232, 199, 66, 0.2);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #e8c742;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.stat-label {
    font-size: 1rem;
    color: #cccccc;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

/* Games Filter */
.games-filter {
    padding: 2rem 0;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: #cccccc;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    background: rgba(232, 199, 66, 0.1);
    border-color: rgba(232, 199, 66, 0.3);
    color: #e8c742;
}

.filter-tab.active {
    background: linear-gradient(135deg, #e8c742, #f4d03f);
    border-color: #e8c742;
    color: #000000;
}

.filter-search {
    display: flex;
    justify-content: center;
}

.search-box {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #e8c742;
    box-shadow: 0 0 0 3px rgba(232, 199, 66, 0.2);
}

.search-input::placeholder {
    color: #888888;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #e8c742, #f4d03f);
    border: none;
    border-radius: 50%;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Hot Games Section */
.hot-games-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    min-height: 60vh;
}

/* Games Grid - เพิ่มส่วนนี้ */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 0 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.games-grid.show {
    opacity: 1;
    transform: translateY(0);
}

/* Game Card - เพิ่มส่วนนี้ */
.game-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(232, 199, 66, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: fadeInUp 0.6s ease-out forwards;
}

.game-card.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #e8c742;
    box-shadow: 0 20px 40px rgba(232, 199, 66, 0.3);
}

/* Game Badges - เพิ่มส่วนนี้ */
.game-hot-badge,
.game-new-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
    backdrop-filter: blur(10px);
    animation: pulse 2s infinite;
}

.game-hot-badge {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.game-new-badge {
    background: linear-gradient(135deg, #4ecdc4, #45b7b8);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

/* Game Image - เพิ่มส่วนนี้ */
.game-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 0;
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

/* Game Content - เพิ่มส่วนนี้ */
.game-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.game-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.game-provider {
    color: #e8c742;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.game-description {
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Game Stats - เพิ่มส่วนนี้ */
.game-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.game-stat {
    text-align: center;
}

.game-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e8c742;
    margin-bottom: 0.25rem;
    display: block;
}

.game-stat-label {
    font-size: 0.8rem;
    color: #888888;
    font-weight: 500;
}

/* Game Actions - เพิ่มส่วนนี้ */
.game-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.game-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    min-height: 48px;
}

.game-btn-primary {
    background: linear-gradient(135deg, #e8c742, #f4d03f);
    color: #000000;
}

.game-btn-primary:hover {
    background: linear-gradient(135deg, #f4d03f, #e8c742);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 199, 66, 0.3);
}

.game-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.game-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

/* Games Loading - ปรับปรุง */
.games-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    color: #cccccc;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.games-loading.hiding {
    opacity: 0;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(232, 199, 66, 0.3);
    border-top: 4px solid #e8c742;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.games-loading p {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
}

/* Games Empty State - ปรับปรุง */
.games-empty {
    text-align: center;
    padding: 4rem 0;
    color: #cccccc;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.games-empty.show {
    opacity: 1;
    transform: translateY(0);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.games-empty h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.games-empty p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #888888;
}

/* Load More - ปรับปรุง */
.load-more {
    text-align: center;
    padding: 2rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.load-more.show {
    opacity: 1;
    transform: translateY(0);
}

/* Providers Section */
.providers-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.provider-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(232, 199, 66, 0.3);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.provider-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(232, 199, 66, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.provider-card:hover {
    transform: translateY(-5px);
    border-color: #e8c742;
    box-shadow: 0 15px 40px rgba(232, 199, 66, 0.2);
}

.provider-card:hover::before {
    opacity: 1;
}

.provider-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.provider-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.provider-info {
    position: relative;
    z-index: 2;
}

.provider-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.provider-info p {
    color: #cccccc;
    margin-bottom: 1rem;
}

.provider-stats {
    display: flex;
    gap: 1rem;
}

.provider-stats .stat {
    background: rgba(232, 199, 66, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e8c742;
}

/* Tips Section */
.tips-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tip-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(232, 199, 66, 0.3);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(232, 199, 66, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    border-color: #e8c742;
    box-shadow: 0 10px 30px rgba(232, 199, 66, 0.2);
}

.tip-card:hover::before {
    opacity: 1;
}

.tip-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.tip-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.tip-card p {
    color: #cccccc;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Section Title with Icon */
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #e8c742, #f4d03f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-icon {
    font-size: 2.5rem;
    background: none;
    -webkit-text-fill-color: initial;
}

/* ===============================
   RESPONSIVE DESIGN
   =============================== */

/* Large Desktop */
@media (min-width: 1400px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 2.5rem;
    }
}

/* Desktop */
@media (min-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .game-content {
        padding: 1.25rem;
    }
    
    .game-image {
        height: 200px;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
        padding: 0;
    }
    
    .game-card {
        border-radius: 15px;
    }
    
    .game-image {
        height: 200px;
    }
    
    .game-content {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .game-title {
        font-size: 1.2rem;
    }
    
    .game-stats {
        gap: 0.5rem;
    }
    
    .game-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .game-btn {
        padding: 0.75rem;
        min-height: 44px;
    }
}

/* Mobile Medium */
@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }
    
    .game-image {
        height: 180px;
    }
    
    .game-content {
        padding: 1rem;
    }
    
    .game-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .game-stat-value {
        font-size: 1rem;
    }
    
    .game-stat-label {
        font-size: 0.75rem;
    }
}

/* Mobile Small */
@media (max-width: 360px) {
    .games-grid {
        margin-bottom: 2rem;
    }
    
    .game-content {
        padding: 0.75rem;
    }
    
    .game-title {
        font-size: 1.1rem;
    }
    
    .game-description {
        font-size: 0.85rem;
    }
    
    .game-btn {
        font-size: 0.85rem;
        padding: 0.5rem;
        min-height: 40px;
    }
}

/* ===============================
   ANIMATIONS - เพิ่มส่วน Games
   =============================== */

/* Fade in animation for games */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for cards */
.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }
.game-card:nth-child(5) { animation-delay: 0.5s; }
.game-card:nth-child(6) { animation-delay: 0.6s; }
.game-card:nth-child(7) { animation-delay: 0.7s; }
.game-card:nth-child(8) { animation-delay: 0.8s; }

/* Pulse animation for badges */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(232, 199, 66, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(232, 199, 66, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(232, 199, 66, 0);
    }
}

/* ===============================
   REDUCED MOTION
   =============================== */

@media (prefers-reduced-motion: reduce) {
    .page-title-icon {
        animation: none;
    }
    
    .game-card {
        animation: none;
    }
    
    .stat-card,
    .provider-card,
    .tip-card {
        transition: none;
    }
}