/* Tetris Game Styles */
.tetris-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
}

.tetris-sidebar {
    min-width: 200px;
}

.tetris-stats {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.stat-item {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.tetris-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tetris-info {
    font-size: 0.9rem;
    color: #666;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.tetris-game {
    position: relative;
}

.gameover-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.gameover-overlay h2 {
    margin-bottom: 1rem;
    color: var(--header-bg);
}

/* Wordle Game Styles */
.wordle-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.wordle-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--header-bg);
}

.wordle-info {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.wordle-board {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.wordle-row {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.wordle-cell {
    width: 60px;
    height: 60px;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--card-bg);
    border-radius: 4px;
    transition: all 0.3s;
}

.wordle-cell-correct {
    background-color: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.wordle-cell-present {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.wordle-cell-absent {
    background-color: #95a5a6;
    color: white;
    border-color: #95a5a6;
}

.wordle-input-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

#wordle-input {
    padding: 0.75rem;
    font-size: 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
    text-transform: uppercase;
    width: 200px;
    font-weight: bold;
}

#wordle-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.wordle-result {
    text-align: center;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.wordle-result-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wordle-result-failure {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wordle-controls {
    text-align: center;
}

/* Responsive Design for Games */
@media (max-width: 768px) {
    .tetris-container {
        flex-direction: column;
        align-items: center;
    }
    
    .tetris-sidebar {
        width: 100%;
    }
    
    #tetris-canvas {
        width: 100%;
        max-width: 300px;
        height: auto;
    }
    
    .wordle-cell {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    #wordle-input {
        width: 150px;
        font-size: 1rem;
    }
    
    .wordle-input-section {
        flex-direction: column;
        align-items: center;
    }
}

