/* Games Page Styles - Desktop */

/* Critical CSS for CLS Prevention */
.uq-hero-content {
    position: relative;
    z-index: 2;
    contain: layout style;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.uq-hero-inner {
    contain: layout style;
    display: flex;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.uq-hero-copy {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.uq-hero-copy h2 {
    contain: layout style;
    line-height: 1.2;
}

.uq-hero-metrics {
    contain: layout style;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    flex: 0 0 320px;
    align-self: flex-start;
}

.uq-stat-card {
    min-height: 100px;
    contain: layout style;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(234, 88, 12, 0.08));
    border-radius: 18px;
}

/* Game Card Modern Styling */
.game-card-modern {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.game-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.game-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card-modern:hover .game-card-image {
    transform: scale(1.05);
}

.game-card-category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #f97316;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.game-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

.game-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.game-card-title a:hover {
    color: #f97316;
}

.game-card-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    line-clamp: 3;
}

.game-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.game-card-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.game-card-badge.primary {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.game-card-action {
    margin-top: auto;
}

.game-card-action .btn {
    width: 100%;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: none;
    color: #ffffff;
    transition: all 0.3s ease;
}

.game-card-action .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.pre-nursery-cta-card {
    background: linear-gradient(135deg, #EEF2FF 0%, #FDE68A 100%);
    border-radius: 16px;
    padding: 24px;
    border: none;
    margin-bottom: 30px;
}

.pre-nursery-cta-title {
    color: #312E81;
    font-weight: 700;
}

.pre-nursery-cta-text {
    color: #4C1D95;
    margin-bottom: 0;
}

.pre-nursery-cta-btn {
    white-space: nowrap;
}

/* AJAX Loader Styles */
.ajax-loader {
    display: none;
    padding: 40px 0;
    text-align: center;
    min-height: 100px;
}

.ajax-loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ajax-loader .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

/* Load More Button Styling */
.games-load-more-btn {
    min-width: 200px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.games-load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.games-load-more-btn:active {
    transform: translateY(0);
}

.games-load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

