/* Games Page Specific Styles */

/* Games Header */
.games-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.games-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="gamesHeaderPattern" width="25" height="25" patternUnits="userSpaceOnUse"><polygon points="12.5,2 19,9 12.5,16 6,9" fill="white" opacity="0.08"/></pattern></defs><rect width="100" height="100" fill="url(%23gamesHeaderPattern)"/></svg>');
}

/* Enhanced Games Grid */
.games-section .games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.games-section .game-card-modern {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
}

.games-section .game-card-modern:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.games-section .game-thumbnail {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.games-section .game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.games-section .game-card-modern:hover .game-thumbnail img {
    transform: scale(1.15);
}

.games-section .game-overlay-modern {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all 0.3s ease;
}

.games-section .game-card-modern:hover .game-overlay-modern {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.games-section .play-btn-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    font-size: 1rem;
}

.games-section .play-btn-modern:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.games-section .game-info-modern {
    padding: 2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 1) 100%);
}

.games-section .game-info-modern h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.games-section .game-description {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    min-height: 2.4rem;
}

.games-section .game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.games-section .game-type {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.games-section .game-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #f59e0b;
    font-weight: 700;
    font-size: 1rem;
}

.games-section .btn-game {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.games-section .btn-game:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* Games Info Section */
.games-info {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.games-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="gamesInfoPattern" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1.5" fill="%23667eea" opacity="0.04"/></pattern></defs><rect width="100" height="100" fill="url(%23gamesInfoPattern)"/></svg>');
}

.games-info .info-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.games-info .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.games-info .info-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.games-info .info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.games-info .info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.18);
    border-color: rgba(102, 126, 234, 0.2);
}

.games-info .info-card h3 {
    color: #1a1a1a;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.games-info .info-card p {
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Game Categories Enhancement */
.game-categories {
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    margin: 2rem 0;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.category-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.category-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .games-section {
        padding: 4rem 0;
    }
    
    .games-section .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .games-section .game-thumbnail {
        height: 200px;
    }
    
    .games-section .game-info-modern {
        padding: 1.5rem;
    }
    
    .games-section .game-info-modern h3 {
        font-size: 1.25rem;
    }
    
    .games-info {
        padding: 4rem 0;
    }
    
    .games-info .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .games-info .info-card {
        padding: 2rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .games-section {
        padding: 3rem 0;
    }
    
    .games-section .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .games-section .game-thumbnail {
        height: 180px;
    }
    
    .games-section .game-info-modern {
        padding: 1.25rem;
    }
    
    .games-section .play-btn-modern {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .games-info {
        padding: 3rem 0;
    }
    
    .games-info .info-card {
        padding: 1.5rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
}
