/* Games Page Specific Styles */

/* Page Header */
.page-header {
    background: linear-gradient(
        135deg,
        rgba(26, 26, 46, 0.9) 0%,
        rgba(22, 33, 62, 0.9) 100%
    );
    padding: 120px 0 60px;
    text-align: center;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 3.5rem;
    color: #ffd700;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-header p {
    font-size: 1.3rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}

/* Games Filter */
.games-filter {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-tab {
    background: transparent;
    border: 2px solid rgba(255, 215, 0, 0.3);
    color: #ccc;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 16px;
}

.filter-tab:hover {
    border-color: #ffd700;
    color: #ffd700;
    transform: translateY(-2px);
}

.filter-tab.active {
    background: #ffd700;
    border-color: #ffd700;
    color: #1a1a2e;
    font-weight: 600;
}

/* Games Section */
.games-section {
    padding: 60px 0;
    background: rgba(0, 0, 0, 0.2);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.game-card {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
}

.game-card.hidden {
    display: none;
}

.game-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.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;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-btn,
.info-btn {
    font-size: 16px;
    padding: 12px 24px;
}

.info-btn {
    background: transparent;
    color: #ffd700;
    border: 2px solid #ffd700;
}

.info-btn:hover {
    background: #ffd700;
    color: #1a1a2e;
}

.game-info {
    padding: 25px;
}

.game-info h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.game-info p {
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.6;
}

.game-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 1.1rem;
    color: #ffd700;
    font-weight: 600;
}

.game-features {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.feature {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Game Info Modal */
.game-info-modal {
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #ffd700;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #ffed4e;
}

#gameInfoContent {
    padding: 20px 0;
}

.game-detail-header {
    text-align: center;
    margin-bottom: 30px;
}

.game-detail-header h2 {
    color: #ffd700;
    font-size: 2rem;
    margin-bottom: 10px;
}

.game-detail-header p {
    color: #ccc;
    font-size: 1.1rem;
}

.game-detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.game-detail-stat {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.game-detail-stat .stat-label {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 5px;
}

.game-detail-stat .stat-value {
    font-size: 1.3rem;
    color: #ffd700;
    font-weight: 600;
}

.game-detail-features {
    margin-bottom: 30px;
}

.game-detail-features h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.game-detail-features ul {
    list-style: none;
    padding: 0;
}

.game-detail-features li {
    color: #ccc;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    position: relative;
    padding-left: 20px;
}

.game-detail-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ffd700;
    font-weight: bold;
}

.game-detail-description {
    margin-bottom: 30px;
}

.game-detail-description h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.game-detail-description p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.game-detail-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.game-detail-actions .btn {
    margin: 0 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }

    .page-header p {
        font-size: 1.1rem;
    }

    .filter-tabs {
        gap: 10px;
    }

    .filter-tab {
        padding: 10px 20px;
        font-size: 14px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .game-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .game-overlay {
        flex-direction: column;
        gap: 10px;
    }

    .play-btn,
    .info-btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 100px 0 40px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .games-filter {
        padding: 20px 0;
    }

    .filter-tabs {
        flex-direction: column;
        align-items: center;
    }

    .filter-tab {
        width: 100%;
        max-width: 200px;
    }

    .game-info {
        padding: 20px;
    }

    .game-detail-stats {
        grid-template-columns: 1fr;
    }
}
