/* Estilos específicos del juego Tres en Raya */

.game-controls {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
}

.mode-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mode-selector label {
    color: var(--text-secondary);
    font-weight: 500;
}

.mode-select {
    background: var(--surface-light);
    color: var(--text-primary);
    border: 1px solid var(--surface-light);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-select:hover {
    border-color: var(--primary-color);
}

.mode-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.game-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-value {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    min-width: 60px;
    text-align: center;
}

#current-player {
    color: var(--primary-color);
    font-size: 2rem;
}

.game-status {
    text-align: center;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1.25rem;
    font-weight: 600;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-status.win {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 2px solid var(--success);
}

.game-status.lose {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border: 2px solid var(--danger);
}

.game-status.draw {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
    border: 2px solid var(--warning);
}

.game-status.hidden {
    display: none;
}

.board-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: var(--surface-light);
    padding: 8px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    width: 100%;
}

.cell {
    aspect-ratio: 1;
    background: var(--surface);
    border: 2px solid var(--surface-light);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    color: var(--text-primary);
}

.cell:hover:not(.disabled) {
    background: var(--surface-light);
    transform: scale(0.95);
    border-color: var(--primary-color);
}

.cell.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.cell.x {
    color: var(--primary-color);
}

.cell.o {
    color: var(--secondary-color);
}

.cell.winning {
    background: rgba(16, 185, 129, 0.3);
    border-color: var(--success);
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .game-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .mode-selector {
        flex-direction: column;
        align-items: stretch;
    }

    .game-stats {
        justify-content: center;
    }

    .cell {
        font-size: 3rem;
    }
}

