/* Games Page Specific Styles */

/* Games Hero Section */
.games-hero {
    padding: 60px 0;
    background: 
        linear-gradient(135deg, rgba(255, 0, 128, 0.1) 0%, rgba(0, 255, 255, 0.1) 100%),
        radial-gradient(ellipse at center, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    position: relative;
    text-align: center;
}

.games-hero .hero-content h1 {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.games-hero .subtitle {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--text-gray);
}

.games-hero .hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
    color: var(--text-gray);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    font-family: 'Orbitron', monospace;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 5px;
}

/* Game Filters */
.game-filters {
    padding: 40px 0;
    background: rgba(26, 26, 46, 0.5);
    border-bottom: 1px solid var(--border-color);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-gray);
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-1);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 128, 0.3);
}

.search-box {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    background: var(--card-bg);
    color: var(--text-light);
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 0, 128, 0.3);
}

.search-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

/* Enhanced Game Cards */
.game-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 0, 128, 0.3);
    border-color: var(--primary-color);
}

.game-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.rtp {
    background: var(--gradient-2);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.volatility {
    background: var(--gradient-3);
    color: var(--dark-bg);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.live-indicator {
    background: #ff0000;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.players {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
}

.game-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.game-actions .btn {
    padding: 10px 15px;
    font-size: 14px;
    flex: 1;
    text-align: center;
}

.demo-btn {
    background: transparent;
    border: 1px solid white;
    color: white;
}

.demo-btn:hover {
    background: white;
    color: var(--dark-bg);
}

.game-card-content {
    padding: 20px;
}

.game-card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 700;
}

.game-card-content p {
    color: var(--text-gray);
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.4;
}

.game-features {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.feature-tag {
    background: var(--gradient-1);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.jackpot-tag {
    background: var(--gold-gradient);
    color: var(--dark-bg);
    animation: pulse 2s infinite;
}

/* Game Sections */
.game-section {
    padding: 60px 0;
}

.slots-section {
    background: rgba(26, 26, 46, 0.3);
}

.live-section {
    background: rgba(0, 255, 255, 0.02);
}

/* Player Perks */
.player-perks {
    padding: 80px 0;
    background: rgba(26, 26, 46, 0.3);
}

.perk-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.perk-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.perk-card:hover::before {
    opacity: 0.05;
}

.perk-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 0, 128, 0.3);
    border-color: var(--primary-color);
}

.perk-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    position: relative;
    z-index: 2;
}

.perk-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-light);
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.perk-card p {
    color: var(--text-gray);
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

/* Popular Categories */
.popular-categories {
    padding: 80px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
}

.category-large {
    grid-column: 1;
    grid-row: 1 / 3;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    padding: 40px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.category-large:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 0, 128, 0.3);
}

.category-small {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    min-height: 180px;
    display: flex;
    align-items: center;
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.category-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 0, 128, 0.2);
}

.category-content {
    position: relative;
    z-index: 2;
    color: white;
}

.category-large .category-content {
    max-width: 60%;
}

.category-content h3 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.category-small .category-content h3 {
    font-size: 1.3rem;
}

.category-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.current-jackpot {
    background: var(--gold-gradient);
    color: var(--dark-bg);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 25px;
    display: inline-block;
    animation: pulse 2s infinite;
}

.categories-grid img {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    z-index: 1;
}

.category-large img {
    width: 250px;
    height: 200px;
}

/* Game Actions CTA */
.game-actions-cta {
    padding: 80px 0;
    background: 
        linear-gradient(135deg, rgba(255, 0, 128, 0.1) 0%, rgba(0, 255, 255, 0.1) 100%),
        radial-gradient(ellipse at center, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--gradient-1);
    color: white;
}

.btn-large {
    padding: 18px 35px;
    font-size: 16px;
    font-weight: 700;
    min-width: 220px;
}

.btn-large i {
    margin-right: 10px;
}

/* Game Grid Animation */
.game-grid {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filter Animation */
.game-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.game-card.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .games-hero .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
    }
    
    .category-large {
        grid-column: 1 / 3;
        grid-row: 1;
    }
}

@media (max-width: 768px) {
    .games-hero .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .filter-tabs {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .filter-btn {
        width: 200px;
        justify-content: center;
    }
    
    .game-actions .btn {
        margin-bottom: 10px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .category-large,
    .category-small {
        grid-column: 1;
        grid-row: auto;
        min-height: 200px;
        text-align: center;
    }
    
    .category-large .category-content {
        max-width: 100%;
    }
    
    .categories-grid img {
        position: static;
        transform: none;
        width: 100%;
        height: 120px;
        margin-top: 20px;
    }
    
    .category-large img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .games-hero {
        padding: 40px 0;
    }
    
    .games-hero .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .games-hero .subtitle {
        font-size: 1.1rem;
    }
    
    .game-card-content {
        padding: 15px;
    }
    
    .perk-card {
        padding: 30px 20px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
    
    .game-overlay {
        padding: 10px;
    }
    
    .game-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .game-actions .btn {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* Loading states */
.loading-games {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 1.2rem;
    color: var(--text-gray);
}

.loading-games i {
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

/* Search results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.no-results p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.no-results .btn {
    display: inline-block;
}

/* Game tooltips */
.game-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.game-card:hover .game-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}
