/* Game Page Specific Styles */

.game-main {
    margin-top: 120px;
    min-height: calc(100vh - 120px);
}

/* Game Hero Section */
.game-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px) brightness(0.4);
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
    rgba(10, 15, 46, 0.8) 0%,
    rgba(26, 44, 91, 0.7) 50%,
    rgba(99, 102, 241, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.game-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.game-title {
    font-family: var(--accent-font);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.game-subtitle {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.9;
    line-height: 1.5;
}

.game-meta {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.meta-icon {
    width: 18px;
    height: 18px;
    fill: var(--electric-cyan);
}

/* Navigation Updates */
.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--cosmic-purple);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all var(--duration-quick);
}

.back-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #5855eb;
}

.back-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Game Container */
.game-container {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, white 100%);
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.game-frame-wrapper {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-dramatic);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.frame-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--ocean-depths), var(--cosmic-purple));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 3;
    transition: opacity var(--duration-normal);
}

.frame-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.game-iframe {
    display: block;
    border-radius: 16px;
    background: #f8fafc;
    min-height: 600px;
}

/* Game Info Panel */
.game-info-panel {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 140px;
}

.info-section {
    margin-bottom: 32px;
}

.info-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--ocean-depths);
    margin-bottom: 16px;
    font-family: var(--accent-font);
}

.info-description {
    color: var(--smoke-gray);
    line-height: 1.7;
    font-size: 16px;
}

.features-list {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 24px;
}

.features-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ocean-depths);
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--charcoal-dark);
}

.feature-icon {
    width: 20px;
    height: 20px;
    fill: var(--success-emerald);
    flex-shrink: 0;
}

/* Related Experiences */
.related-experiences {
    padding: 80px 0;
    background: var(--ocean-depths);
}

.related-title {
    font-family: var(--accent-font);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 50px;
    color: white;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.related-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--duration-normal);
    cursor: pointer;
}

.related-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.related-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform var(--duration-normal);
}

.related-card:hover .related-image {
    transform: scale(1.05);
}

.related-info {
    padding: 24px;
    color: white;
}

.related-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.related-info p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 16px;
    line-height: 1.5;
}

.related-link {
    display: inline-flex;
    align-items: center;
    color: var(--electric-cyan);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all var(--duration-quick);
}

.related-link:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .game-info-panel {
        position: static;
        top: auto;
    }

    .game-meta {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .game-main {
        margin-top: 100px;
    }

    .game-hero {
        height: 50vh;
        min-height: 350px;
    }

    .game-badge {
        font-size: 13px;
        padding: 8px 16px;
    }

    .game-subtitle {
        font-size: 18px;
    }

    .game-meta {
        flex-direction: column;
        gap: 16px;
    }

    .content-wrapper {
        padding: 0 15px;
    }

    .game-info-panel {
        padding: 24px;
    }

    .game-iframe {
        min-height: 500px;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .back-link span {
        display: none;
    }
}

@media (max-width: 480px) {
    .game-container {
        padding: 40px 0;
    }

    .related-experiences {
        padding: 60px 0;
    }

    .game-iframe {
        min-height: 400px;
    }

    .game-info-panel {
        padding: 20px;
    }

    .info-title {
        font-size: 20px;
    }

    .related-info {
        padding: 20px;
    }
}

/* Loading States */
.game-iframe[data-loading="true"] {
    opacity: 0.5;
    pointer-events: none;
}

/* Focus States */
.game-iframe:focus {
    outline: 2px solid var(--cosmic-purple);
    outline-offset: 4px;
}

/* Print Styles */
@media print {
    .game-hero,
    .related-experiences,
    .game-info-panel {
        display: none;
    }

    .game-iframe {
        height: auto;
        min-height: auto;
    }
}