/* ============================================
   CanadaQuestCircle.com - Game Page Styles
   ============================================ */

/* === Game Header === */
.game-header {
    background: rgba(7, 10, 20, 0.95);
    border-bottom: 1px solid rgba(68, 230, 163, 0.1);
    padding: var(--space-lg) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.game-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.game-back-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.game-back-link:hover {
    color: var(--aurora-mint);
}

.game-back-link svg {
    transition: transform var(--transition-fast);
}

.game-back-link:hover svg {
    transform: translateX(-4px);
}

.game-header-info {
    flex: 1;
    text-align: center;
}

.game-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-primary);
    margin: 0;
    background: linear-gradient(135deg, var(--aurora-mint) 0%, var(--aurora-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: var(--space-xs);
}

.game-header-meta {
    display: flex;
    gap: var(--space-sm);
}

.game-meta-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: rgba(68, 230, 163, 0.1);
    border: 1px solid rgba(68, 230, 163, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--aurora-mint);
    font-family: var(--font-mono);
}

/* === Game Main Section === */
.game-main {
    min-height: calc(100vh - 200px);
    padding: var(--space-xl) 0;
}

.game-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 1200px) {
    .game-container {
        grid-template-columns: 1fr 340px;
    }
}

/* === Game Wrapper === */
.game-wrapper {
    background: var(--deep-navy);
    border: 1px solid rgba(68, 230, 163, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.game-iframe-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--polar-ink);
}

.game-iframe {
    width: 100%;
    height: 100%;
    border: none;
}


.game-iframe-container.loading::before {
    opacity: 0;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* === Game Info Panel === */
.game-info-panel {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.game-info-card {
    background: linear-gradient(180deg, var(--panel) 0%, rgba(16, 31, 61, 0.6) 100%);
    border: 1px solid rgba(68, 230, 163, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.game-info-title {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
}

.game-info-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

/* === Game Features === */
.game-features {
    margin-bottom: var(--space-lg);
}

.game-features-title {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.game-features-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.game-features-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.game-features-list svg {
    flex-shrink: 0;
}

/* === Game Notice === */
.game-notice {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
    padding: var(--space-md);
    background: rgba(198, 161, 91, 0.08);
    border-left: 2px solid var(--brass-thread);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-lg);
}

.game-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.game-notice p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* === Game Footer === */
.game-footer {
    background: rgba(7, 10, 20, 0.95);
    border-top: 1px solid rgba(68, 230, 163, 0.1);
    padding: var(--space-xl) 0 var(--space-lg);
}

/* === Mobile Adjustments === */
@media (max-width: 768px) {
    .game-header-container {
        flex-direction: column;
        text-align: center;
    }

    .game-header-info {
        order: -1;
    }

    .game-header-meta {
        width: 100%;
        justify-content: center;
    }

    .game-back-link {
        width: 100%;
        justify-content: center;
    }

    .game-iframe-container {
        aspect-ratio: 4 / 3;
    }

    .game-info-panel {
        position: static;
    }

    .game-main {
        padding: var(--space-lg) 0;
    }
}

@media (max-width: 640px) {
    .game-header {
        padding: var(--space-md) 0;
    }

    .game-header-container {
        padding: 0 var(--space-md);
    }

    .game-container {
        padding: 0 var(--space-md);
        gap: var(--space-md);
    }

    .game-info-card {
        padding: var(--space-md);
    }

    .game-iframe-container {
        aspect-ratio: 3 / 4;
    }
}

/* === Focus States === */
.game-back-link:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--aurora-cyan);
    outline-offset: 2px;
}
