/* Custom Card Styles to override existing styles */
.game-card {
    transform: scale(1);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    max-width: 100%;
}

.game-image {
    max-height: 220px;
    border-bottom: 2px solid rgba(237, 108, 58, 0.2);
}

@media screen and (max-width: 992px) {
    .game-image {
        max-height: 130px;
    }
}

@media screen and (max-width: 576px) {
    .game-image {
        max-height: 110px;
    }
}

.game-content {
    padding: 1rem 1.2rem 1.2rem;
}

@media screen and (max-width: 992px) {
    .game-content {
        padding: 0.5rem 0.7rem 0.7rem;
    }
}

@media screen and (max-width: 576px) {
    .game-content {
        padding: 0.4rem 0.6rem 0.6rem;
    }
}

.game-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
    margin-top: 0 !important;
    line-height: 1.4 !important;
}

@media screen and (max-width: 992px) {
    .game-title {
        font-size: 0.9rem !important;
        margin-bottom: 4px !important;
        line-height: 1.15 !important;
    }
}

@media screen and (max-width: 576px) {
    .game-title {
        font-size: 0.8rem !important;
        margin-bottom: 3px !important;
        line-height: 1.1 !important;
    }
}

.game-meta {
    padding-top: 12px !important;
    border-top: none !important;
    gap: 10px !important;
}

@media screen and (max-width: 992px) {
    .game-meta {
        padding-top: 6px !important;
        gap: 6px !important;
    }
}

@media screen and (max-width: 576px) {
    .game-meta {
        padding-top: 4px !important;
        gap: 4px !important;
    }
}

.game-level, .game-subject {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.6rem !important;
}

.game-subject i {
    margin-right: 0.35rem !important;
    font-size: 0.9rem !important;
}

@media screen and (max-width: 992px) {
    .game-level, .game-subject {
        font-size: 0.65rem !important;
        padding: 0.18rem 0.4rem !important;
    }
    
    .game-subject i {
        margin-right: 0.25rem !important;
        font-size: 0.8rem !important;
    }
}

@media screen and (max-width: 576px) {
    .game-level, .game-subject {
        font-size: 0.6rem !important;
        padding: 0.12rem 0.35rem !important;
    }
    
    .game-subject i {
        margin-right: 0.2rem !important;
        font-size: 0.75rem !important;
    }
}

/* Adjust grid based on screen size */
.load-more-container {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
}

/* Responsive adjustments */
@media screen and (max-width: 992px) {
    .load-more-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    .game-card {
        transform: scale(0.95);
    }
}

@media screen and (max-width: 576px) {
    .load-more-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        gap: 10px !important;
    }
    
    .game-card {
        transform: scale(0.9);
    }
}

/* Fix animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.game-card:hover, .game-card:focus {
    transform: translateY(-5px) scale(1);
}

@media screen and (max-width: 992px) {
    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0) scale(0.95);
        }
    }
    
    .game-card:hover, .game-card:focus {
        transform: translateY(-4px) scale(0.95);
    }
}

@media screen and (max-width: 576px) {
    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0) scale(0.9);
        }
    }
    
    .game-card:hover, .game-card:focus {
        transform: translateY(-4px) scale(0.9);
    }
}
