/* Games Page Styles */
.games-page {
    background-color: var(--dark);
}

/* Games Hero */
.games-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(15, 15, 28, 0.7), rgba(15, 15, 28, 0.9)), url('https://images.pexels.com/photos/8885057/pexels-photo-8885057.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
    background-size: cover;
    background-position: center;
    padding-top: 80px;
    position: relative;
}

.games-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--dark), transparent);
}

.games-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.games-hero-content h1 {
    font-size: 4rem;
    margin-bottom: var(--space-3);
    text-shadow: 0 0 20px rgba(108, 92, 231, 0.5);
}

.games-hero-content p {
    font-size: var(--fs-xl);
    color: var(--light-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Games List Section */
.games-list-section {
    padding: var(--space-10) 0;
}

.games-filters {
    background-color: var(--dark-700);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-6);
}

.games-filters label {
    color: var(--light-600);
    margin-bottom: var(--space-2);
    font-size: var(--fs-sm);
}

.form-select {
    background-color: var(--dark-600);
    border: 1px solid var(--dark-500);
    color: var(--light);
    border-radius: var(--radius-md);
}

.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(108, 92, 231, 0.25);
}

/* Game Item */
.game-item {
    background-color: var(--dark-700);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    margin-bottom: var(--space-6);
    height: 100%;
}

.game-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.game-image {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-item:hover .game-image img {
    transform: scale(1.1);
}

.game-status {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.game-details {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.game-meta {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.game-meta span {
    font-size: var(--fs-xs);
    color: var(--light-500);
    display: flex;
    align-items: center;
}

.game-meta i {
    margin-right: var(--space-1);
    color: var(--primary);
}

.game-details h3 {
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-2);
}

.game-details p {
    color: var(--light-600);
    margin-bottom: var(--space-3);
}

.game-rewards {
    background-color: var(--dark-600);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    margin-bottom: var(--space-4);
}

.game-rewards h4 {
    font-size: var(--fs-md);
    color: var(--light);
    margin-bottom: var(--space-2);
}

.rewards-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.reward-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-sm);
}

.reward-item i {
    color: var(--accent);
}

.game-actions {
    display: flex;
    gap: var(--space-2);
}

/* Upcoming Games */
.upcoming-games {
    margin-top: var(--space-10);
}

.section-title {
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-5);
    color: var(--light);
    position: relative;
    padding-left: var(--space-3);
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
}

.upcoming-game-card {
    background-color: var(--dark-700);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
}

.upcoming-game-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.upcoming-image {
    height: 180px;
    overflow: hidden;
}

.upcoming-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.upcoming-game-card:hover .upcoming-image img {
    transform: scale(1.1);
}

.upcoming-details {
    padding: var(--space-4);
}

.upcoming-details h4 {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-2);
}

.upcoming-details p {
    color: var(--light-600);
    margin-bottom: var(--space-3);
    font-size: var(--fs-sm);
}

.upcoming-meta {
    display: flex;
    align-items: center;
    color: var(--primary);
    font-size: var(--fs-xs);
    font-weight: 600;
}

.upcoming-meta i {
    margin-right: var(--space-1);
}

/* Game Rewards Section */
.game-rewards-section {
    background-color: var(--dark-800);
    padding: var(--space-12) 0;
}

.rewards-content {
    padding-right: var(--space-6);
}

.rewards-content h3 {
    font-size: var(--fs-3xl);
    margin-bottom: var(--space-6);
    color: var(--light);
}

.reward-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.reward-step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    font-size: var(--fs-lg);
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-1);
}

.step-content p {
    color: var(--light-600);
    font-size: var(--fs-md);
}

.rewards-showcase {
    padding-left: var(--space-6);
}

.rewards-card {
    background-color: var(--dark-700);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.rewards-header {
    background: var(--gradient-primary);
    padding: var(--space-4);
    text-align: center;
}

.rewards-header h3 {
    font-size: var(--fs-xl);
    margin: 0;
}

.rewards-body {
    padding: var(--space-4);
}

.leaderboard-rank {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.rank {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) var(--space-3);
    background-color: var(--dark-600);
    border-radius: var(--radius-md);
}

.rank .position {
    font-weight: 700;
}

.rank .prize {
    color: var(--accent);
}

.rank:first-child {
    background: linear-gradient(90deg, var(--dark-600), var(--primary-dark));
}

.rank:first-child .position {
    color: var(--primary-light);
}

/* Modal Customizations */
.modal-content {
    background-color: var(--dark-700);
    border: none;
    border-radius: var(--radius-lg);
}

.modal-header {
    border-bottom: 1px solid var(--dark-500);
    padding: var(--space-4) var(--space-4);
}

.modal-title {
    color: var(--light);
}

.btn-close {
    color: var(--light);
    filter: invert(1) brightness(200%);
}

.modal-body {
    padding: var(--space-4);
}

/* Responsive */
@media (max-width: 992px) {
    .games-hero-content h1 {
        font-size: 3rem;
    }
    
    .rewards-content, .rewards-showcase {
        padding: 0;
    }
    
    .rewards-showcase {
        margin-top: var(--space-6);
    }
}

@media (max-width: 768px) {
    .games-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .games-hero-content p {
        font-size: var(--fs-lg);
    }
    
    .game-details {
        padding: var(--space-3);
    }
    
    .game-details h3 {
        font-size: var(--fs-xl);
    }
    
    .reward-step {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: var(--space-2);
    }
}

@media (max-width: 576px) {
    .games-hero {
        min-height: 30vh;
    }
    
    .games-hero-content h1 {
        font-size: 2rem;
    }
    
    .games-hero-content p {
        font-size: var(--fs-md);
    }
    
    .game-item .row {
        flex-direction: column;
    }
    
    .game-image {
        height: 200px;
    }
    
    .game-meta {
        flex-wrap: wrap;
    }
}