/* Home Games Display Styles - Premier Edition */
.home-games-section {
    margin-bottom: 4rem;
    position: relative;
}

.home-games-section::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, #FFD700, transparent);
    animation: slideRight 3s infinite;
}

@keyframes slideRight {
    0% { transform: translateX(-200px); }
    100% { transform: translateX(calc(100vw + 200px)); }
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.section-title i {
    font-size: 1.75rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: iconPulse 2s infinite;
}

.section-title span {
    background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.view-all-btn {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: none;
    border-radius: 50px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.view-all-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.view-all-btn:hover::before {
    width: 300px;
    height: 300px;
}

.view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.home-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

@media (min-width: 640px) {
    .home-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .home-games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Premium Game Cards */
.home-game-card {
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.home-game-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.home-game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(255, 215, 0, 0.3),
        0 0 60px rgba(255, 215, 0, 0.1);
}

.home-game-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a, #000);
}

.home-game-image img,
.home-game-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.home-game-card:hover .home-game-image img,
.home-game-card:hover .home-game-image video {
    transform: scale(1.1);
}

.home-game-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.375rem 1rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #000;
    animation: badgePulse 2s infinite;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
}

@keyframes badgePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.7);
    }
}

.home-game-countdown {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #FFD700;
}

.home-game-content {
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.5), rgba(10, 10, 10, 0.9));
}

.home-game-title {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-game-price {
    margin-bottom: 1rem;
}

.home-game-price-value {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-game-price-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.home-game-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.home-game-stat {
    text-align: center;
}

.home-game-stat-value {
    font-size: 1rem;
    font-weight: bold;
    color: #FFD700;
}

.home-game-stat-label {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.home-game-action {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: none;
    border-radius: 12px;
    color: #000;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.home-game-action::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.home-game-action:hover::after {
    width: 300px;
    height: 300px;
}

.home-game-action:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

/* Loading State */
.home-games-loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    color: #FFD700;
}

.home-games-loading i {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

.home-games-loading p {
    font-size: 1.125rem;
    color: rgba(255, 215, 0, 0.7);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Empty State */
.home-games-empty {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 165, 0, 0.02));
    border-radius: 20px;
    border: 2px dashed rgba(255, 215, 0, 0.3);
}

.home-games-empty i {
    font-size: 4rem;
    color: rgba(255, 215, 0, 0.3);
    margin-bottom: 1rem;
}

.home-games-empty p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.125rem;
}