/* Simple Connect 4 styling that integrates with blog theme */

.game-info {
    background: var(--accent, #f8f9fa);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid var(--border, #e9ecef);
}

.game-info h3 {
    margin-top: 0;
    color: var(--foreground, #333);
}

.game-status {
    margin-top: 15px;
}

.current-player {
    padding: 10px;
    background: var(--accent, #f8f9fa);
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
}

.game-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.game-controls button {
    padding: 8px 16px;
    border: 1px solid var(--border, #ccc);
    background: var(--background, white);
    color: var(--foreground, #333);
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
}

.game-controls button:hover:not(:disabled) {
    background: var(--accent, #f0f0f0);
}

.game-controls button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.board-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.game-board {
    background: #0066cc;
    padding: 15px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 6px;
    max-width: 420px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.cell {
    width: 50px;
    height: 50px;
    background: #2c3e50;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cell:hover {
    background: #34495e;
    transform: scale(1.05);
}

.cell.player1 {
    background: #e74c3c;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.cell.player2 {
    background: #f1c40f;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.cell.winning {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.game-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.stat-box {
    background: var(--accent, #f8f9fa);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border, #e9ecef);
}

.stat-box h4 {
    margin: 0 0 8px 0;
    color: var(--foreground, #666);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-box span {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--foreground, #333);
}

.move-history {
    background: var(--accent, #f8f9fa);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid var(--border, #e9ecef);
}

.move-history h4 {
    margin-top: 0;
    color: var(--foreground, #333);
}

#move-log {
    max-height: 120px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--foreground, #666);
}

/* Responsive design */
@media (max-width: 768px) {
    .game-board {
        padding: 10px;
        gap: 4px;
        max-width: 320px;
    }
    
    .cell {
        width: 40px;
        height: 40px;
    }
    
    .game-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .game-controls {
        flex-direction: column;
    }
}

/* Animation for dropping pieces */
.cell.dropping {
    animation: drop 0.4s ease-out;
}

@keyframes drop {
    0% { transform: translateY(-100px); }
    60% { transform: translateY(5px); }
    80% { transform: translateY(-2px); }
    100% { transform: translateY(0); }
}

/* AI thinking indicator */
.ai-thinking {
    display: inline-block;
    animation: thinking 1.2s infinite;
}

@keyframes thinking {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}