/* Tic-Tac-Toe - Styles */

.game-container { max-width: 500px; margin: 0 auto; }

.game-info {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.game-status {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.game-status.win { color: #10b981; }
.game-status.lose { color: #ef4444; }
.game-status.draw { color: #f59e0b; }

.player-info { display: flex; justify-content: center; gap: 2rem; margin-top: 1rem; }
.player {
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-md);
    background-color: var(--background-color);
    font-weight: 500;
}
.player.active { background-color: var(--primary-color); color: white; }
.player-symbol { font-size: 1.25rem; margin-right: 0.5rem; }

.game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background-color: var(--surface-color);
    padding: 15px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.cell {
    aspect-ratio: 1;
    background-color: var(--background-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cell:hover:not(.taken) { background-color: var(--border-color); }
.cell.taken { cursor: default; }
.cell.x { color: var(--primary-color); }
.cell.o { color: #ef4444; }
.cell.win-cell { background-color: #d1fae5; }

.difficulty-section {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.difficulty-section h3 { font-size: 1rem; margin-bottom: 1rem; text-align: center; }
.difficulty-options { display: flex; gap: 0.75rem; justify-content: center; }
.difficulty-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--surface-color);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
}
.difficulty-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
.difficulty-btn.active { border-color: var(--primary-color); background-color: var(--primary-color); color: white; }

.control-buttons { display: flex; gap: 1rem; justify-content: center; margin-bottom: 1.5rem; }

.stats-section {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.stats-section h3 { font-size: 1rem; margin-bottom: 1rem; text-align: center; }
.stats-grid { display: flex; justify-content: space-around; }
.stat-item { text-align: center; }
.stat-item .stat-label { font-size: 0.75rem; text-transform: uppercase; color: var(--text-secondary); display: block; margin-bottom: 0.25rem; }
.stat-item .stat-value { font-size: 1.5rem; font-weight: 700; }
.stat-item .stat-value.wins { color: #10b981; }
.stat-item .stat-value.losses { color: #ef4444; }
.stat-item .stat-value.draws { color: #f59e0b; }

@media (max-width: 480px) {
    .cell { font-size: 2.5rem; }
    .player-info { gap: 1rem; }
    .player { padding: 0.5rem 1rem; font-size: 0.9rem; }
    .difficulty-options { flex-direction: column; }
    .difficulty-btn { width: 100%; }
    .control-buttons { flex-direction: column; }
    .control-buttons .btn { width: 100%; }
}
