/* ========================================
   Escape Tsunami For Brainrot - Game Page Styles
   ======================================== */

/* Game Header */
.game-header {
    padding: 2rem 0 1.5rem;
    text-align: center;
}

.game-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Game Layout */
.game-layout {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 2rem;
}

/* Main Game Area */
.game-main {
    width: 100%;
    max-width: 960px;
    flex: 1;
}

.game-container {
    background: #000;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-color);
    position: relative;
    margin-bottom: 2rem;
}

.game-placeholder,
.game-iframe-wrapper {
    aspect-ratio: 16/9;
    position: relative;
    background: #0f172a;
    width: 100%;
}

.game-preview {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: opacity 0.5s ease;
}

.game-placeholder:hover .preview-image {
    opacity: 0.3;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    backdrop-filter: blur(2px);
}

.play-game-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 3.5rem;
    background: var(--primary-gradient);
    border: none;
    border-radius: 9999px;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.5);
}

.play-game-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 20px 30px -10px rgba(99, 102, 241, 0.6);
}

.play-icon {
    font-size: 1.5rem;
}

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

.game-controls {
    display: flex;
    justify-content: flex-end;
    padding: 0.75rem 1.25rem;
    background: #1e293b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Sidebar */
.game-sidebar {
    width: 300px;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .game-layout {
        flex-direction: column;
    }
    .game-sidebar {
        width: 100%;
    }
    .game-main {
        max-width: 100%;
    }
}

/* Content Sections */
.game-description,
.comments-section,
.game-tags-section {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.description-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.description-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.description-content p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.description-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.description-content ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.description-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.game-tag {
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.game-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Comments */
#disqus_thread {
    min-height: 200px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.game-layout, .new-games-section, .game-description {
    animation: fadeIn 0.6s ease-out forwards;
}

/* New Content Images */
.intro-image-container {
    margin: 1.5rem 0;
    text-align: center;
}

.content-image {
    max-width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}
